mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
profiles/apparmor.d/rygel: allow specific access for /dev bits
It turns out we need to allow /dev/null for fd inheritance and /dev for reading plus /dev/urandom, all of which are quite safe. Signed-off-by: Alex Murray <alex.murray@canonical.com>
This commit is contained in:
parent
3731488ab6
commit
46d994ddcd
1 changed files with 4 additions and 5 deletions
|
@ -22,9 +22,8 @@ profile rygel /usr/bin/rygel {
|
|||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/nameservice>
|
||||
|
||||
# gst-plugin-scanner tries to probe various things but is not really needed so
|
||||
# deny it
|
||||
deny file r /{dev,sys}/{,**},
|
||||
# gst-plugin-scanner tries to probe various things and inherit fds
|
||||
file r /dev/{,urandom,null},
|
||||
|
||||
file r @{etc_ro}/rygel.conf,
|
||||
|
||||
|
@ -93,8 +92,8 @@ profile rygel /usr/bin/rygel {
|
|||
include <abstractions/base>
|
||||
include <abstractions/dbus-session-strict>
|
||||
|
||||
# is not actually needed so deny it
|
||||
deny file r /{dev,sys}/{,**},
|
||||
# gst-plugin-scanner tries to probe various things and inherit fds
|
||||
file r /dev/{,urandom,null},
|
||||
|
||||
file mr /usr/libexec/rygel/mx-extract,
|
||||
file r /usr/share/gupnp-dlna-2.0/dlna-profiles/{,*},
|
||||
|
|
Loading…
Add table
Reference in a new issue