mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3711] zoom profile: can't access webcam #2336
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2336
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tornaria on GitHub (Oct 30, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3711
After #3518, zoom cannot access webcam via
/dev/video*.Bug and expected behavior
It turns out the user doesn't have access to the devices
/dev/video*because it lacks the groupvideo(note that outside firejail, the user does have access to the groupvideo)Workaround
In
zoom.profile, if I comment outnogroupand I addgroupto theprivate-etcwhitelist, then it works:since now the user is in group
video, it has access to the devices/dev/video*and the webcam works.Extra comments
a. I couldn't find a way to override
nogroupsin my local profile. Is there any way?b.
audioandvideogroups are kept only if/etc/groupis whitelisted inprivate-etc, presumably because the identification of the groups is done by name inside firejail. Would it make sense to use the group names outside of firejail so that/etc/groupis not needed?c. Would it make sense for
nogroupsto also except special groups likeaudioandvideo?d. Is there another workaround that I'm not seeing?
@ghost commented on GitHub (Oct 30, 2020):
Thank you for reporting this. To me this sounds like a bug and we should update the zoom profile accordingly. A video conferencing app like zoom should provide necessary functionality without the user having to rely on a local override.
ignore nogroups
private-etc group
I don't see how that would work. We have several profiles that don't have the
nogroupsoption. If it guarantees expected functionality it is OK to leave it out.Technically it should be possible, one can always code in such exceptions. But in this case I don't see the benefit of doing so. No means no, and not 'no but yes for x & y'. It would only cause confusion IMHO. Hence I'm marking this as a bug and will keep it open to see what other responses we get on this issue.
@rusty-snake commented on GitHub (Oct 31, 2020):
Are you on a system w/o systemd?
c: nogroups means nogroups, IMHO we should not change this. Anyway there is #2042 (and #3303).
@ghost commented on GitHub (Oct 31, 2020):
@tornaria I went ahead and made the needed changes in git. Please feel free to reopen if you experience the same issue again after updating firejail.
@rusty-snake commented on GitHub (Oct 31, 2020):
@glitsj16 @tornaria
nogroupsbreaks commonly unprivileged access inside /dev on non-systemd system. If that's the case, we should add a note so users can comment/uncomment it easily because the know when it is save.@ghost commented on GitHub (Oct 31, 2020):
@rusty-snake Good point, let's reopen this and wait for @tornaria to chime in so we can add such a note.
@tornaria commented on GitHub (Dec 15, 2020):
@glitsj16 @rusty-snake
Sorry for the delay. Indeed, I use void linux which does not use systemd.
@ghost commented on GitHub (Dec 15, 2020):
@tornaria That's alright. I made a PR to re-enable 'nogroups' and added a comment how users on non-systemd systems need to deal with this. Thanks for getting back to us, I think we can close this once the PR gets merged.
@ghost commented on GitHub (Dec 15, 2020):
@tornaria PR is in. Feel free to reopen if you experience any oddness with zoom.