mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 05:47:59 +00:00
abstractions: update video abstraction
the video abstraction currently it only contains the following rules: @{sys}/class/video4linux r, @{sys}/class/video4linux/** r, Judging by the v4l path, this abstraction should be used whenever some app wants to use for instance a webcam or other USB cameras to stream video usually in chat apps. I was testing some apps, and it looks like the following rules are needed to make the video streaming possible: Fixes: https://gitlab.com/apparmor/apparmor/-/issues/159 MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/740 Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
3ee4f9c75f
commit
f19f9ae1fa
@ -7,5 +7,14 @@
|
||||
@{sys}/class/video4linux r,
|
||||
@{sys}/class/video4linux/** r,
|
||||
|
||||
owner /dev/shm/libv4l-* rw,
|
||||
/dev/video[0-9]* rw,
|
||||
@{sys}/devices/pci[0-9]*/**/usb[0-9]/**/video4linux/video[0-9]*/dev r,
|
||||
@{sys}/devices/pci[0-9]*/**/usb[0-9]/**/{modalias,speed} r,
|
||||
|
||||
@{sys}/devices/virtual/dmi/id/sys_vendor r,
|
||||
@{sys}/devices/virtual/dmi/id/product_{name,version} r,
|
||||
@{sys}/devices/virtual/dmi/id/board_{vendor,name,version} r,
|
||||
|
||||
# Include additions to the abstraction
|
||||
include if exists <abstractions/video.d>
|
||||
|
Loading…
x
Reference in New Issue
Block a user