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

Default behaviour of --cap-drop #561

Open
cgzones opened this issue Mar 2, 2023 · 2 comments
Open

Default behaviour of --cap-drop #561

cgzones opened this issue Mar 2, 2023 · 2 comments

Comments

@cgzones
Copy link
Contributor

cgzones commented Mar 2, 2023

The documentation of --cap-drop states:

By default no caps are left in the sandboxed process.

That seems not to be true:

id
uid=0(root) gid=0(root) groups=0(root)

getpcaps $$
14257: =ep

bwrap --bind / / sh -c 'getpcaps $$'
15598: =ep

bwrap --bind / / --cap-drop ALL sh -c 'getpcaps $$'
15577: =
@smcv
Copy link
Collaborator

smcv commented Mar 2, 2023

This might be related to #122 and #123.

@rusty-snake
Copy link
Contributor

Similiar: #287

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

No branches or pull requests

3 participants