NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.3k stars 14.27k forks source link

bwrap: Unexpected capabilities but not setuid, old file caps config? when run in bspwm #312195

Open alkeryn opened 6 months ago

alkeryn commented 6 months ago

Describe the bug

if i try to run steam or bwrap i get the error : bwrap: Unexpected capabilities but not setuid, old file caps config?. it only happen when doing so from bspwm, i guess it may be related to that cap_sys_nice kde patch

Expected behavior

it should just run

Screenshots

Additional context

Add any other context about the problem here.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.9, NixOS, 23.11 (Tapir), 23.11.7122.9ddcaffecdf0`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixos-23.11"`
 - channels(alkeryn): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

dmizelle commented 6 months ago

Related to:

https://github.com/NixOS/nixpkgs/issues/217119#issuecomment-2002558989 https://github.com/NixOS/nixpkgs/issues/289640 https://github.com/NixOS/nixpkgs/issues/162693

alkeryn commented 6 months ago

so this is a shitty temporary fix, but in the meanwhile what i did is copy the bspwm executable to a path in my home and give it cap_sys_nice with setcap. i then run that executable from my .xinitrc instead of the one made by nixos.

this is ugly, but i'm busy and i can't spend the time to deal with it right now.