Skip to content

Process: Drop capabilities when spawning processes - #2313

Open
ImSapphire wants to merge 1 commit into
ValveSoftware:masterfrom
ImSapphire:sapphire/fix/drop-caps-on-proc-spawn
Open

Process: Drop capabilities when spawning processes#2313
ImSapphire wants to merge 1 commit into
ValveSoftware:masterfrom
ImSapphire:sapphire/fix/drop-caps-on-proc-spawn

Conversation

@ImSapphire

Copy link
Copy Markdown

Fixes launching bwrap'd applications.

@matte-schwartz

Copy link
Copy Markdown
Collaborator

could you give some simple steps for how to repro what this fixes? thanks.

@ImSapphire

Copy link
Copy Markdown
Author

Try launching any executable with bwrap under gamescope while gamescope has the CAP_SYS_NICE capability. bwrap will refuse to run if it has any capabilities set and setuid mode isn't enabled during build, or it doesn't have setuid: https://github.com/containers/bubblewrap/blob/1b80120ef26a28e065e67f89bfef873f13bdd317/bubblewrap.c#L889

bubblewrap will refuse to run if it is not setuid and has any
capabilities set. It's also probably not a good idea to leak our
caps to the child application anyway.
@ImSapphire
ImSapphire force-pushed the sapphire/fix/drop-caps-on-proc-spawn branch from ea5ef05 to 2bc44ae Compare August 11, 2026 23:29
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.

2 participants