# apparmor.d - Full set of apparmor profiles # Copyright (C) 2020-2022 Mikhail Morfikov # Copyright (C) 2022 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = /{usr/,}bin/system-config-printer @{exec_path} += /usr/share/system-config-printer/system-config-printer.py profile system-config-printer @{exec_path} flags=(complain) { include include include include include include include include include include include network inet stream, network inet6 stream, network netlink raw, dbus send bus=system path=/org/freedesktop/PolicyKit[0-9]/Authority interface=org.freedesktop.DBus.Properties member=GetAll, dbus send bus=system path=/org/freedesktop/PolicyKit[0-9]/Authority interface=org.freedesktop.PolicyKit[0-9].Authority member=CheckAuthorization, dbus send bus=system path=/org/freedesktop/hostname[0-9] interface=org.freedesktop.DBus.Properties member=GetAll, @{exec_path} mrix, /{usr/,}bin/{,ba,da}sh rix, /{usr/,}bin/python3.[0-9]* r, /{usr/,}lib/cups/*/* rPUx, /usr/share/hplip/query.py rPUx, /usr/share/cups/data/testprint r, /usr/share/system-config-printer/{,**} r, /usr/share/X11/xkb/{,**} r, /etc/cups/cupsd.conf r, /etc/cupshelpers/preferreddrivers.xml r, /etc/fstab r, /etc/papersize r, /var/lib/snapd/desktop/icons/ r, owner @{HOME}/.cups/ rw, owner @{HOME}/.cups/lpoptions rw, owner @{run}/user/@{uid}/wayland-[0-9]* rw, owner @{run}/user/@{uid}/gvfsd/socket-* rw, @{run}/cups/cups.sock rw, owner /tmp/* rw, owner @{PROC}/@{pid}/fd/ r, owner @{PROC}/@{pid}/stat r, owner @{PROC}/@{pid}/mounts r, owner @{PROC}/@{pid}/mountinfo r, owner /dev/tty[0-9]* rw, include if exists }