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

*: correctly chown() consoles #836

Merged
merged 1 commit into from
May 23, 2016
Merged

*: correctly chown() consoles #836

merged 1 commit into from
May 23, 2016

Conversation

cyphar
Copy link
Member

@cyphar cyphar commented May 22, 2016

In user namespaces, we need to make sure we don't chown() the console to
unmapped users. This means we need to get both the UID and GID of the
root user in the container when changing the owner.

This is part of the cleanup I did for rootless containers, but benefits the
project as a whole so we might as well apply it now. Obviously we still
need to fix the user namespace interaction (#814).

Signed-off-by: Aleksa Sarai [email protected]

/cc @crosbymichael

In user namespaces, we need to make sure we don't chown() the console to
unmapped users. This means we need to get both the UID and GID of the
root user in the container when changing the owner.

Signed-off-by: Aleksa Sarai <[email protected]>
@cyphar cyphar mentioned this pull request May 22, 2016
46 tasks
@LK4D4
Copy link
Contributor

LK4D4 commented May 22, 2016

LGTM

1 similar comment
@hqhq
Copy link
Contributor

hqhq commented May 23, 2016

LGTM

@hqhq hqhq merged commit d2d09b9 into opencontainers:master May 23, 2016
@cyphar cyphar deleted the console-chown branch May 23, 2016 02:27
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
specs-go/config: Add a 'linux' tag to OOMScoreAdj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants