Skip to content

Do not create new user namespace if we already have CAP_SYS_ADMIN#66

Merged
alexflint merged 1 commit into
mainfrom
detect-capabilities
Dec 23, 2025
Merged

Do not create new user namespace if we already have CAP_SYS_ADMIN#66
alexflint merged 1 commit into
mainfrom
detect-capabilities

Conversation

@alexflint

Copy link
Copy Markdown
Member

Parse /proc/self/status to determine whether we already have CAP_SYS_ADMIN. If we do, then don't create a new user namespace unless explicitly requested. If parsing of /proc/self/status fails, or it doesn't exist, then assume zero capabilities and proceed as before.

…ew user namespace if we already have CAP_SYS_ADMIN
@alexflint alexflint merged commit a91ebd6 into main Dec 23, 2025
1 check failed
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.

1 participant