mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4324] Access to CEC Adapter blocked by kodi.profile #2622
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#2622
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 @lapseofreason on GitHub (Jun 1, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4324
In order to use a CEC adapter in kodi (using libcec), access to
/dev/ttyACM0is required. However, this is blocked byprivate-devinkodi.profile.Bug and expected behavior
/dev/ttyACM0is required to use CEC adapter, but is denied bykodi.profile.No profile and disabling firejail
/dev/ttyACM0works when running it without firejail.Reproduce
Steps to reproduce the behavior:
firejail kodiEnvironment
Additional context
The profile can be overridden locally in
kodi.profile, but I could not find a way to overrideprivate-dev. It seems to not be able to customize it (#1446). Suggestions for a workaround would be welcome.Checklist
https://github.com/netblue30/firejail/issues/1139)--profile=PROFILENAMEis used to set the right profile.LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAMto get english error-messages.browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.@rusty-snake commented on GitHub (Jun 1, 2021):
ignore private-dev. . .@lapseofreason commented on GitHub (Jun 1, 2021):
@rusty-snake Thanks a log for the quick hint to the workaround!
@rusty-snake commented on GitHub (Jun 1, 2021):
Would you say CEC adapters are common enough to be worth adding a note to kodi.profile?
@lapseofreason commented on GitHub (Jun 1, 2021):
Hard to say, for the specific use case of a media center I suspect they are quite common as they allow you to control kodi with the TV remote. There is one on every RaspberryPI, for desktops they are a bit harder to get though.
I just tried the workaround, which did not work so I suspect there must be something else blocking access to
/dev/ttyACM0too. I also tried commenting outprivate-devin kodi.profile to make sure I didn't make any mistakes (which didn't work either).Running
firejail --noprofile kodion the other hand works.@rusty-snake commented on GitHub (Jun 1, 2021):
Then it's either blacklisted
or requires group permissions
I guess.
@lapseofreason commented on GitHub (Jun 1, 2021):
Thanks! Adding the following to
kodi.localworks for me:Without any one of them it does not work.
I understand that it requires
nogroupsas/dev/ttyACM0is not world-readable, but I'm unsure whynorootis needed.@rusty-snake commented on GitHub (Jun 1, 2021):
norootremoves all groups except forfirejail,tty(is/dev/ttyACM0nottty?),audio,video,games.@lapseofreason commented on GitHub (Jun 1, 2021):
/dev/ttyACM0is groupdialouton Fedora.@lapseofreason commented on GitHub (Jun 3, 2021):
@rusty-snake Thanks a lot, seems like a good compromise to add it as a comment to the profile!