feat(profiles): add ubuntu specific profiles.

This commit is contained in:
Alexandre Pujol 2022-05-21 17:07:37 +01:00
parent 4c7ebb3a39
commit 59ba69a167
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
9 changed files with 287 additions and 0 deletions

View file

@ -0,0 +1,36 @@
# 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/python>
@{exec_path} mr,
/{usr/,}bin/python3.[0-9]* r,
/{usr/,}bin/apt-config rPx,
/{usr/,}bin/dirname rix,
/{usr/,}bin/dpkg rPx -> child-dpkg,
/{usr/,}bin/find rix,
/{usr/,}bin/ischroot rix,
/{usr/,}bin/mktemp rix,
/{usr/,}bin/mv rix,
/{usr/,}lib/update-notifier/apt_check.py rix,
/etc/apt/apt.conf.d/{,*} r,
/etc/apt/sources.list r,
/var/lib/apt/lists/{,*} r,
/var/lib/update-notifier/{,*} rw,
owner @{PROC}/@{pid}/fd/ r,
include if exists <local/update-motd-updates-available>
}