48 lines
No EOL
1.4 KiB
Text
48 lines
No EOL
1.4 KiB
Text
# 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/share/unattended-upgrades/unattended-upgrade-shutdown
|
|
profile unattended-upgrade-shutdown @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/dbus-network-manager-strict>
|
|
include <abstractions/dbus-strict>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/python>
|
|
|
|
dbus send bus=system path=/org/freedesktop/login[0-9]
|
|
interface=org.freedesktop.login[0-9].Manager
|
|
member=Inhibit,
|
|
|
|
dbus send bus=system path=/org/freedesktop/login[0-9]
|
|
interface=org.freedesktop.DBus.{Introspectable,Properties}
|
|
member={Introspect,Get},
|
|
|
|
dbus send bus=system path=/org/freedesktop/NetworkManager
|
|
interface=org.freedesktop.DBus.Properties
|
|
member=GetAll,
|
|
|
|
dbus receive bus=system path=/org/freedesktop/login[0-9]
|
|
interface=org.freedesktop.login[0-9].Manager
|
|
member=PrepareForShutdown,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/ischroot rix,
|
|
|
|
/usr/share/unattended-upgrades/{,*} r,
|
|
/etc/apt/apt.conf.d/{,*} r,
|
|
|
|
owner /var/log/unattended-upgrades/*.log* rw,
|
|
|
|
owner @{run}/unattended-upgrades.lock rwk,
|
|
owner @{run}/systemd/inhibit/[0-9]*.ref rw,
|
|
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
include if exists <local/unattended-upgrade-shutdown>
|
|
} |