50 lines
No EOL
1.5 KiB
Text
50 lines
No EOL
1.5 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}lib/update-notifier/update-motd-updates-available
|
|
profile update-motd-updates-available @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/apt-common>
|
|
include <abstractions/consoles>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/openssl>
|
|
include <abstractions/python>
|
|
|
|
capability dac_read_search,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/python3.[0-9]* r,
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/apt-config rPx,
|
|
/{usr/,}bin/chmod rix,
|
|
/{usr/,}bin/dirname rix,
|
|
/{usr/,}bin/dpkg rPx -> child-dpkg,
|
|
/{usr/,}bin/find rix,
|
|
/{usr/,}bin/ischroot rix,
|
|
/{usr/,}bin/lsb_release rPx -> lsb_release,
|
|
/{usr/,}bin/mktemp rix,
|
|
/{usr/,}bin/mv rix,
|
|
/{usr/,}bin/rm rix,
|
|
/{usr/,}lib/update-notifier/apt_check.py rix,
|
|
|
|
/usr/share/distro-info/{,**} r,
|
|
|
|
/etc/machine-id r,
|
|
|
|
/var/lib/update-notifier/{,*} rw,
|
|
|
|
/var/cache/apt/ r,
|
|
/var/cache/apt/** rwk,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
@{PROC}/@{pids}/mountinfo r,
|
|
|
|
include if exists <local/update-motd-updates-available>
|
|
} |