apparmor.d/profiles/volumeicon
2021-04-01 16:17:47 +01:00

46 lines
1.1 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2015-2020 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/volumeicon
profile volumeicon @{exec_path} {
include <abstractions/base>
include <abstractions/X>
include <abstractions/gtk>
include <abstractions/fonts>
include <abstractions/fontconfig-cache-read>
include <abstractions/freedesktop.org>
include <abstractions/audio>
include <abstractions/dri-enumerate>
include <abstractions/mesa>
include <abstractions/nameservice-strict>
include <abstractions/wayland>
include <abstractions/deny-root-dir-access>
@{exec_path} mr,
# Volumeicon files
/usr/share/volumeicon/** r,
# Volumeicon config files
owner @{HOME}/.config/volumeicon/ rw,
owner @{HOME}/.config/volumeicon/volumeicon* rw,
/var/lib/dbus/machine-id r,
/etc/machine-id r,
/usr/share/glib-2.0/schemas/gschemas.compiled r,
# Start the PulseAudio sound mixer
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/pavucontrol rPUx,
# file_inherit
owner /dev/tty[0-9]* rw,
include if exists <local/volumeicon>
}