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

linux: do not precreate devs with euid > 0 #1201

Merged
merged 3 commits into from
Apr 26, 2023

Conversation

giuseppe
Copy link
Member

if the process is running with euid > 0 it is not possible for the user to create device nodes, so there is no point in attempting that.

The error message was also confusing, because it says that it is not possible to create the mount namespace.

Closes: #1198

if the process is running with euid > 0 it is not possible for the
user to create device nodes, so there is no point in attempting that.

The error message was also confusing, because it says that it is not
possible to create the mount namespace.

Closes: containers#1198

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Apr 26, 2023

LGTM

@rhatdan rhatdan merged commit 645b75b into containers:main Apr 26, 2023
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.

unshare CLONE_NEWNS Operation not permitted
3 participants