mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profiles): add software-properties-gtk & ubuntu-advantage.
This commit is contained in:
parent
d04bb8f5b2
commit
4a37cd1149
36
apparmor.d/groups/ubuntu/software-properties-gtk
Normal file
36
apparmor.d/groups/ubuntu/software-properties-gtk
Normal 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/,}bin/software-properties-gtk
|
||||
profile software-properties-gtk @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/apt-common>
|
||||
include <abstractions/python>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/openssl>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}bin/aplay rPx,
|
||||
/{usr/,}bin/apt-key rPx,
|
||||
/{usr/,}bin/dpkg rPx -> child-dpkg,
|
||||
/{usr/,}bin/lsb_release rPx -> lsb_release,
|
||||
/{usr/,}bin/ubuntu-advantage rPx,
|
||||
|
||||
/usr/share/icons/{,**} r,
|
||||
/usr/share/ubuntu-drivers-common/detect/{,**} r,
|
||||
|
||||
/etc/machine-id r,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
@{sys}/devices/ r,
|
||||
@{sys}/devices/**/ r,
|
||||
|
||||
include if exists <local/software-properties-gtk>
|
||||
}
|
24
apparmor.d/groups/ubuntu/ubuntu-advantage
Normal file
24
apparmor.d/groups/ubuntu/ubuntu-advantage
Normal file
@ -0,0 +1,24 @@
|
||||
# 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/ubuntu-advantage
|
||||
profile ubuntu-advantage @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/apt-common>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/python>
|
||||
include <abstractions/ssl_certs>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}bin/dpkg rPx -> child-dpkg,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
include if exists <local/ubuntu-advantage>
|
||||
}
|
@ -3,12 +3,17 @@ apport-gtk complain
|
||||
apt-esm-hook complain
|
||||
apt-esm-json-hook complain
|
||||
check-new-release-gtk complain
|
||||
do-release-upgrade complain
|
||||
hwe-support-status complain
|
||||
list-oem-metapackages complain
|
||||
livepatch-notification complain
|
||||
notify-reboot-required complain
|
||||
package-system-locked attach_disconnected,complain
|
||||
packagekitd complain
|
||||
release-upgrade-motd complain
|
||||
software-properties-gtk
|
||||
software-properties-gtk complain
|
||||
ubuntu-advantage complain
|
||||
ubuntu-advantage-notification complain
|
||||
ubuntu-report complain
|
||||
update-manager attach_disconnected,complain
|
||||
|
Loading…
Reference in New Issue
Block a user