mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
feat(profiles): add do-release-upgrade.
This commit is contained in:
parent
72a042e6ef
commit
1d45e8ec2e
1 changed files with 34 additions and 0 deletions
34
apparmor.d/groups/ubuntu/do-release-upgrade
Normal file
34
apparmor.d/groups/ubuntu/do-release-upgrade
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# 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/,}bin/do-release-upgrade
|
||||||
|
profile do-release-upgrade @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/apt-common>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
include <abstractions/openssl>
|
||||||
|
include <abstractions/python>
|
||||||
|
include <abstractions/ssl_certs>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/dpkg rPx -> child-dpkg,
|
||||||
|
/{usr/,}bin/lsb_release rPx -> lsb_release,
|
||||||
|
|
||||||
|
/usr/share/distro-info/*.csv r,
|
||||||
|
/usr/share/ubuntu-release-upgrader/{,**} r,
|
||||||
|
|
||||||
|
/etc/machine-id r,
|
||||||
|
/etc/update-manager/{,**} r,
|
||||||
|
|
||||||
|
/var/lib/update-manager/meta-release-* rw,
|
||||||
|
|
||||||
|
owner @{PROC}/@{pid}/fd/ r,
|
||||||
|
|
||||||
|
include if exists <local/do-release-upgrade>
|
||||||
|
}
|
Loading…
Reference in a new issue