Skip to content

Set CREATE_BREAKAWAY_FROM_JOB flag for job container processes#983

Merged
dcantah merged 1 commit intomicrosoft:masterfrom
dcantah:breakway-job
Mar 25, 2021
Merged

Set CREATE_BREAKAWAY_FROM_JOB flag for job container processes#983
dcantah merged 1 commit intomicrosoft:masterfrom
dcantah:breakway-job

Conversation

@dcantah
Copy link
Contributor

@dcantah dcantah commented Mar 25, 2021

We don't want to inherit the job object of whatever process is running the job container code (the containerd-shim
generally but this would apply for any process). Set the CREATE_BREAKAWAY_FROM_JOB flag on job container processes
to prevent this from happening. The job object itself will also need to have the JOB_OBJECT_LIMIT_BREAKAWAY_OK limit
set for this to take affect.

Signed-off-by: Daniel Canter dcanter@microsoft.com

We don't want to inherit the job object of whatever process is running the job container code (the containerd-shim
generally but this would apply for any process). Set the CREATE_BREAKAWAY_FROM_JOB flag on job container processes
to prevent this from happening. The job object itself will also need to have the JOB_OBJECT_LIMIT_BREAKAWAY_OK limit
set for this to take affect.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
@dcantah dcantah requested a review from a team as a code owner March 25, 2021 00:07
@dcantah
Copy link
Contributor Author

dcantah commented Mar 25, 2021

@kevpar

Copy link
Member

@kevpar kevpar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants