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

Keep vglusers group unless no3d is used (virtualgl) #4851

Merged
merged 1 commit into from
Jan 16, 2022

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented Jan 12, 2022

virtualgl[1] runs chown root:vglusers on /dev/nvidia* and on devices
usually owned by the "render" group[2]. This makes them unavailable in
the sandbox if noroot (which causes groups to be dropped) is used.

Since firejail classifies all of the aforementioned devices as being
DEV_3D on fs_dev.c (which means that they are controlled by no3d),
treat the "vglusers" group the same as the "render" group (by always
keeping "vglusers" unless no3d is used).

See the discussion on #2042 (from this comment[3] onwards).

[1] https://virtualgl.org
[2] https://github.com/VirtualGL/virtualgl/blob/6f0b90be02d13171dfdfffb112485f4091a5904f/server/vglserver_config#L393
[3] #2042 (comment)

Reported-by: @JCallicoat

virtualgl[1] runs `chown root:vglusers` on `/dev/nvidia*` and on devices
usually owned by the "render" group[2].  This makes them unavailable in
the sandbox if `noroot` (which causes groups to be dropped) is used.

Since firejail classifies all of the aforementioned devices as being
`DEV_3D` on fs_dev.c (which means that they are controlled by `no3d`),
treat the "vglusers" group the same as the "render" group (by always
keeping "vglusers" unless `no3d` is used).

See the discussion on netblue30#2042 (from this comment[3] onwards).

[1] https://virtualgl.org
[2] https://github.com/VirtualGL/virtualgl/blob/6f0b90be02d13171dfdfffb112485f4091a5904f/server/vglserver_config#L393
[3] netblue30#2042 (comment)

Reported-by: @JCallicoat
@netblue30 netblue30 merged commit 657221e into netblue30:master Jan 16, 2022
@netblue30
Copy link
Owner

merged, thanks!

@kmk3 kmk3 deleted the groups-keep-vglusers branch January 16, 2022 18:04
@kmk3 kmk3 added this to To Document (RELNOTES/man) in Release 0.9.68 Jan 16, 2022
@kmk3 kmk3 moved this from To Document (RELNOTES/man) to Done (on RELNOTES) in Release 0.9.68 Feb 5, 2022
kmk3 added a commit to kmk3/firejail that referenced this pull request Sep 7, 2023
This group is apparently used on Gentoo[1].

Currently only the "audio" supplementary group is kept.

Fixes netblue30#5992.

See also commit f329386 ("Keep vglusers group unless no3d is used
(virtualgl)", 2022-01-07) / PR netblue30#4851.

[1] https://wiki.gentoo.org/wiki/PipeWire

Reported-by: @amano-kenji
kmk3 added a commit to kmk3/firejail that referenced this pull request Sep 20, 2023
This group is apparently used on Gentoo[1].

Currently only the "audio" supplementary group is kept.

Fixes netblue30#5992.

See also commit f329386 ("Keep vglusers group unless no3d is used
(virtualgl)", 2022-01-07) / PR netblue30#4851.

[1] https://wiki.gentoo.org/wiki/PipeWire

Reported-by: @amano-kenji
kmk3 added a commit to kmk3/firejail that referenced this pull request Sep 20, 2023
This group is apparently used on Gentoo[1].

Currently only the "audio" supplementary group is kept.

Fixes netblue30#5992.

See also commit f329386 ("Keep vglusers group unless no3d is used
(virtualgl)", 2022-01-07) / PR netblue30#4851.

[1] https://wiki.gentoo.org/wiki/PipeWire

Reported-by: @amano-kenji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Release 0.9.68
  
Done (on RELNOTES)
Development

Successfully merging this pull request may close these issues.

None yet

2 participants