mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-16 00:13:48 +01:00
59 lines
1.5 KiB
Plaintext
59 lines
1.5 KiB
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}lib/gsd-media-keys
|
|
profile gsd-media-keys @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/audio>
|
|
include <abstractions/fonts>
|
|
include <abstractions/gtk>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
signal (receive) set=(term, hup) peer=gdm*,
|
|
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/usr/share/gdm/greeter-dconf-defaults r,
|
|
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
|
/usr/share/icons/{,**} r,
|
|
/usr/share/mime/mime.cache r,
|
|
/usr/share/sounds/freedesktop/stereo/*.oga r,
|
|
/usr/share/X11/xkb/** r,
|
|
|
|
/etc/machine-id r,
|
|
/var/lib/dbus/machine-id r,
|
|
|
|
owner @{user_config_dirs}/pulse/ rw,
|
|
|
|
owner @{user_share_dirs}/ r,
|
|
owner @{user_share_dirs}/event-sound-cache.tdb.* rwk,
|
|
owner @{user_share_dirs}/recently-used.xbel{,.*} rw,
|
|
|
|
/var/lib/gdm/.config/pulse/client.conf r,
|
|
/var/lib/gdm/.config/pulse/cookie rk,
|
|
|
|
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
|
@{run}/systemd/inhibit/[0-9]*.ref rw,
|
|
|
|
include <abstractions/dconf>
|
|
owner @{run}/user/@{uid}/dconf/ rw,
|
|
owner @{run}/user/@{uid}/dconf/user rw,
|
|
/usr/share/dconf/profile/gdm r,
|
|
/var/lib/gdm/.config/dconf/user r,
|
|
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
@{run}/udev/data/c13:[0-9]* r, # for /dev/input/*
|
|
@{sys}/devices/platform/**/uevent r,
|
|
@{sys}/devices/**/usb[0-9]/{,**} r,
|
|
|
|
include if exists <local/gsd-media-keys>
|
|
}
|