feat(profile): integrate fsp with apt and ubuntu.
This commit is contained in:
parent
3984cf8acc
commit
7f684ee5dd
7 changed files with 22 additions and 9 deletions
|
|
@ -8,7 +8,7 @@ abi <abi/4.0>,
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = @{lib}/apt/methods/http{,s}
|
@{exec_path} = @{lib}/apt/methods/http{,s}
|
||||||
profile apt-methods-http @{exec_path} {
|
profile apt-methods-http @{exec_path} flags=(attach_disconnected) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
|
@ -23,10 +23,11 @@ profile apt-methods-http @{exec_path} {
|
||||||
network inet6 stream,
|
network inet6 stream,
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
|
signal receive peer=@{p_apt_news},
|
||||||
|
signal receive peer=@{p_packagekitd},
|
||||||
signal receive peer=apt-get,
|
signal receive peer=apt-get,
|
||||||
signal receive peer=apt,
|
signal receive peer=apt,
|
||||||
signal receive peer=aptitude,
|
signal receive peer=aptitude,
|
||||||
signal receive peer=@{p_packagekitd},
|
|
||||||
signal receive peer=role_*,
|
signal receive peer=role_*,
|
||||||
signal receive peer=synaptic,
|
signal receive peer=synaptic,
|
||||||
signal receive peer=ubuntu-advantage,
|
signal receive peer=ubuntu-advantage,
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ profile dpkg-script-apparmor @{exec_path} {
|
||||||
/var/lib/dpkg/diversions-old rwl -> /var/lib/dpkg/diversions,
|
/var/lib/dpkg/diversions-old rwl -> /var/lib/dpkg/diversions,
|
||||||
|
|
||||||
/var/lib/dpkg/info/*.list r,
|
/var/lib/dpkg/info/*.list r,
|
||||||
|
/var/lib/dpkg/info/format r,
|
||||||
/var/lib/dpkg/status r,
|
/var/lib/dpkg/status r,
|
||||||
/var/lib/dpkg/triggers/File r,
|
/var/lib/dpkg/triggers/File r,
|
||||||
/var/lib/dpkg/triggers/Unincorp r,
|
/var/lib/dpkg/triggers/Unincorp r,
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,9 @@ profile dpkg-script-systemd @{exec_path} {
|
||||||
/etc/systemd/system/*.wants/ rw,
|
/etc/systemd/system/*.wants/ rw,
|
||||||
/etc/systemd/system/*.wants/* rw,
|
/etc/systemd/system/*.wants/* rw,
|
||||||
|
|
||||||
|
/etc/pam.d/sed@{rand6} rw,
|
||||||
|
/etc/pam.d/common-password rw,
|
||||||
|
|
||||||
/var/lib/systemd/{,*} rw,
|
/var/lib/systemd/{,*} rw,
|
||||||
/var/log/journal/ rw,
|
/var/log/journal/ rw,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ profile dpkg-scripts @{exec_path} {
|
||||||
@{sbin}/update-rc.d Cx -> rc,
|
@{sbin}/update-rc.d Cx -> rc,
|
||||||
|
|
||||||
# Maintainer scripts can legitimately start/restart anything
|
# Maintainer scripts can legitimately start/restart anything
|
||||||
|
# PU is only used as a safety fallback.
|
||||||
@{bin}/** PUx,
|
@{bin}/** PUx,
|
||||||
@{sbin}/** PUx,
|
@{sbin}/** PUx,
|
||||||
@{lib}/** PUx,
|
@{lib}/** PUx,
|
||||||
|
|
@ -75,6 +76,8 @@ profile dpkg-scripts @{exec_path} {
|
||||||
include <abstractions/app/bus>
|
include <abstractions/app/bus>
|
||||||
include <abstractions/bus-system>
|
include <abstractions/bus-system>
|
||||||
|
|
||||||
|
capability dac_read_search,
|
||||||
|
|
||||||
dbus send bus=system path=/
|
dbus send bus=system path=/
|
||||||
interface=org.freedesktop.DBus
|
interface=org.freedesktop.DBus
|
||||||
member=ReloadConfig
|
member=ReloadConfig
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@ profile unattended-upgrade @{exec_path} flags=(attach_disconnected) {
|
||||||
capability setuid,
|
capability setuid,
|
||||||
capability sys_nice,
|
capability sys_nice,
|
||||||
|
|
||||||
|
network inet dgram,
|
||||||
|
network inet6 dgram,
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
signal send peer=apt-methods-http,
|
signal send peer=apt-methods-http,
|
||||||
|
|
|
||||||
|
|
@ -15,20 +15,14 @@ profile cron-ubuntu-fan @{exec_path} {
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{sh_path} rix,
|
@{sh_path} rix,
|
||||||
@{sbin}/fanctl rix,
|
@{sbin}/fanctl rPx,
|
||||||
@{bin}/flock rix,
|
|
||||||
@{bin}/grep rix,
|
@{bin}/grep rix,
|
||||||
@{bin}/id rix,
|
|
||||||
@{sbin}/ip rix,
|
@{sbin}/ip rix,
|
||||||
@{bin}/mkdir rix,
|
@{bin}/mkdir rix,
|
||||||
@{bin}/sed rix,
|
@{bin}/sed rix,
|
||||||
@{bin}/touch rix,
|
|
||||||
|
|
||||||
/etc/network/fan r,
|
/etc/network/fan r,
|
||||||
|
|
||||||
@{run}/ubuntu-fan/ rw,
|
|
||||||
@{run}/ubuntu-fan/.lock rwk,
|
|
||||||
|
|
||||||
include if exists <local/cron-ubuntu-fan>
|
include if exists <local/cron-ubuntu-fan>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,17 @@ profile update-notifier-crash @{exec_path} {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{bin}/systemctl Cx -> systemctl,
|
||||||
|
|
||||||
/usr/share/apport/apport-checkreports Px,
|
/usr/share/apport/apport-checkreports Px,
|
||||||
|
|
||||||
|
profile systemctl {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/app/systemctl>
|
||||||
|
|
||||||
|
include if exists <local/update-notifier-crash_systemctl>
|
||||||
|
}
|
||||||
|
|
||||||
include if exists <local/update-notifier-crash>
|
include if exists <local/update-notifier-crash>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue