Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default umask 0022 #388

Merged
merged 1 commit into from
Mar 6, 2023
Merged

Conversation

saschagrunert
Copy link
Member

Under non-reproducible circumstances it can happen that the umask of conmon is set to 0000, which can be a security issue. To avoid that, we now use a default umask and set it directly in main.

We had a similar fix in CRI-O in cri-o/cri-o#5904, but we have to do it here again because conmon is a direct parent of PID 1.

Refers to https://issues.redhat.com/browse/OCPBUGS-8057

Under non-reproducible circumstances it can happen that the umask of
conmon is set to `0000`, which can be a security issue. To avoid that,
we now use a default umask and set it directly in `main`.

We had a similar fix in CRI-O in
cri-o/cri-o#5904, but we have to do it here
again because conmon is a direct parent of PID 1.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Mar 6, 2023

LGTM
/approve

@haircommander
Copy link
Collaborator

LGTM

@haircommander haircommander merged commit b1d7297 into containers:main Mar 6, 2023
@saschagrunert saschagrunert deleted the default-umask branch March 7, 2023 08:02
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.

3 participants