mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01:00
profiles/apparmor.d/rygel: enumerate specific bits for /sys and /dev
Instead of denying everything here, enumerate just the bits that are required and also deny access to display devices since that is not actually needed by rygel itself. Signed-off-by: Alex Murray <alex.murray@canonical.com>
This commit is contained in:
parent
472d002a96
commit
3469c62b36
1 changed files with 13 additions and 4 deletions
|
@ -22,10 +22,13 @@ profile rygel /usr/bin/rygel {
|
|||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/nameservice>
|
||||
|
||||
# gst-plugin-scanner tries to probe various things and inherit fds but
|
||||
# explicitly deny others as they are not needed and are noisy
|
||||
# gst-plugin-scanner tries to probe various things including display devices
|
||||
# etc so allow those that are harmless but deny the rest
|
||||
file r /dev/{,urandom,null},
|
||||
deny file /{dev,sys}/** r,
|
||||
file r /sys/,
|
||||
file r /sys/{bus,class}/,
|
||||
file r /sys/class/drm/,
|
||||
deny file r /dev/dri/{,**},
|
||||
|
||||
file r @{etc_ro}/rygel.conf,
|
||||
|
||||
|
@ -108,10 +111,16 @@ profile rygel /usr/bin/rygel {
|
|||
include <abstractions/dbus-session-strict>
|
||||
include <abstractions/freedesktop.org>
|
||||
|
||||
# gst-plugin-scanner tries to probe various things and inherit fds
|
||||
# gst-plugin-scanner tries to probe various things including display devices
|
||||
# etc so allow those that are harmless but deny the rest
|
||||
file r /dev/{,urandom,null},
|
||||
file r /sys/,
|
||||
file r /sys/{bus,class}/,
|
||||
file r /sys/class/drm/,
|
||||
deny file r /dev/dri/{,**},
|
||||
|
||||
file mr /usr/libexec/rygel/mx-extract,
|
||||
|
||||
file r /usr/share/gupnp-dlna-2.0/dlna-profiles/{,*},
|
||||
|
||||
file mrix /usr/lib/@{multiarch}/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner,
|
||||
|
|
Loading…
Add table
Reference in a new issue