feat(profile): various core update.
This commit is contained in:
parent
7badf80854
commit
47b6e3c616
18 changed files with 30 additions and 21 deletions
|
|
@ -34,6 +34,8 @@ profile mke2fs @{exec_path} {
|
||||||
owner @{run}/blkid/blkid.tab{,-@{rand6}} rw,
|
owner @{run}/blkid/blkid.tab{,-@{rand6}} rw,
|
||||||
owner @{run}/blkid/blkid.tab.old rwl -> @{run}/blkid/blkid.tab,
|
owner @{run}/blkid/blkid.tab.old rwl -> @{run}/blkid/blkid.tab,
|
||||||
|
|
||||||
|
owner @{tmp}/.guestfs-@{uid}/appliance.d.@{rand8}/@{user} rw,
|
||||||
|
|
||||||
@{PROC}/swaps r,
|
@{PROC}/swaps r,
|
||||||
owner @{PROC}/@{pid}/mounts r,
|
owner @{PROC}/@{pid}/mounts r,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ profile firewalld @{exec_path} flags=(attach_disconnected) {
|
||||||
#aa:dbus own bus=system name=org.fedoraproject.FirewallD1
|
#aa:dbus own bus=system name=org.fedoraproject.FirewallD1
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
@{python_path} r,
|
||||||
|
|
||||||
@{bin}/ r,
|
@{bin}/ r,
|
||||||
@{bin}/alts rix,
|
@{bin}/alts rix,
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ profile htop @{exec_path} {
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{bin}/lsof rix,
|
@{bin}/lsof rix,
|
||||||
|
@{bin}/strace rix,
|
||||||
|
|
||||||
/usr/share/terminfo/** r,
|
/usr/share/terminfo/** r,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ profile w @{exec_path} {
|
||||||
|
|
||||||
capability sys_ptrace,
|
capability sys_ptrace,
|
||||||
|
|
||||||
ptrace (read),
|
ptrace read,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,8 @@ profile systemd-cryptsetup @{exec_path} flags=(attach_disconnected) {
|
||||||
@{sys}/devices/virtual/bdi/*/read_ahead_kb r,
|
@{sys}/devices/virtual/bdi/*/read_ahead_kb r,
|
||||||
@{sys}/fs/ r,
|
@{sys}/fs/ r,
|
||||||
|
|
||||||
|
@{run}/systemd/ask-password/ r,
|
||||||
|
|
||||||
@{PROC}/devices r,
|
@{PROC}/devices r,
|
||||||
owner @{PROC}/@{pid}/mountinfo r,
|
owner @{PROC}/@{pid}/mountinfo r,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ profile systemd-generator-ds-identify @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
@{sh_path} rix,
|
@{sh_path} rix,
|
||||||
@{bin}/blkid rPx,
|
@{bin}/blkid rPx,
|
||||||
|
@{bin}/grep rix,
|
||||||
@{bin}/systemd-detect-virt rPx,
|
@{bin}/systemd-detect-virt rPx,
|
||||||
@{bin}/tr rix,
|
@{bin}/tr rix,
|
||||||
@{bin}/uname rix,
|
@{bin}/uname rix,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ abi <abi/4.0>,
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = @{lib}/systemd/systemd-modules-load
|
@{exec_path} = @{lib}/systemd/systemd-modules-load
|
||||||
profile systemd-modules-load @{exec_path} {
|
profile systemd-modules-load @{exec_path} flags=(attach_disconnected) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/common/systemd>
|
include <abstractions/common/systemd>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ abi <abi/4.0>,
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = @{lib}/systemd/systemd-remount-fs
|
@{exec_path} = @{lib}/systemd/systemd-remount-fs
|
||||||
profile systemd-remount-fs @{exec_path} {
|
profile systemd-remount-fs @{exec_path} flags=(attach_disconnected) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
include <abstractions/common/systemd>
|
include <abstractions/common/systemd>
|
||||||
|
|
@ -17,7 +17,7 @@ profile systemd-remount-fs @{exec_path} {
|
||||||
capability sys_resource,
|
capability sys_resource,
|
||||||
|
|
||||||
mount options=(rw, remount) -> /,
|
mount options=(rw, remount) -> /,
|
||||||
mount options=(rw, remount) -> /proc/,
|
mount options=(rw, remount) -> @{PROC}/,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,11 @@ profile systemd-tty-ask-password-agent @{exec_path} {
|
||||||
capability net_admin,
|
capability net_admin,
|
||||||
capability sys_resource,
|
capability sys_resource,
|
||||||
|
|
||||||
signal (receive) set=(term cont) peer=*//systemctl,
|
signal receive set=(term cont) peer=*//systemctl,
|
||||||
signal (receive) set=(term cont) peer=default,
|
signal receive set=(term cont) peer=default,
|
||||||
signal (receive) set=(term cont) peer=logrotate,
|
signal receive set=(term cont) peer=logrotate,
|
||||||
signal (receive) set=(term cont) peer=rpm,
|
signal receive set=(term cont) peer=role_*,
|
||||||
|
signal receive set=(term cont) peer=rpm,
|
||||||
|
|
||||||
@{exec_path} mrix,
|
@{exec_path} mrix,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,8 @@ profile zram-generator @{exec_path} flags=(attach_disconnected) {
|
||||||
owner @{run}/systemd/generator/swap.target.wants/{,dev-zram@{int}.swap} rw,
|
owner @{run}/systemd/generator/swap.target.wants/{,dev-zram@{int}.swap} rw,
|
||||||
owner @{run}/systemd/generator/systemd-zram-setup@zram@{int}.service.d/{,*.conf} rw,
|
owner @{run}/systemd/generator/systemd-zram-setup@zram@{int}.service.d/{,*.conf} rw,
|
||||||
|
|
||||||
@{sys}/block/zram@{int}/{disksize,reset} rw,
|
@{sys}/block/zram@{int}/* rw,
|
||||||
@{sys}/devices/virtual/block/zram@{int}/{disksize,reset,comp_algorithm} rw,
|
@{sys}/devices/virtual/block/zram@{int}/* rw,
|
||||||
@{sys}/module/compression r,
|
@{sys}/module/compression r,
|
||||||
|
|
||||||
@{PROC}/crypto r,
|
@{PROC}/crypto r,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ profile apt-esm-json-hook @{exec_path} {
|
||||||
/var/lib/ubuntu-advantage/apt-esm/{,**} rw,
|
/var/lib/ubuntu-advantage/apt-esm/{,**} rw,
|
||||||
/var/log/ubuntu-advantage-apt-hook.log w,
|
/var/log/ubuntu-advantage-apt-hook.log w,
|
||||||
|
|
||||||
@{run}/cloud-init/cloud-id-nocloud r,
|
@{run}/cloud-init/cloud-id-* r,
|
||||||
|
|
||||||
owner @{PROC}/@{pid}/fd/ r,
|
owner @{PROC}/@{pid}/fd/ r,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,8 +87,6 @@ profile update-notifier @{exec_path} {
|
||||||
include <abstractions/app/systemctl>
|
include <abstractions/app/systemctl>
|
||||||
include <abstractions/bus-system>
|
include <abstractions/bus-system>
|
||||||
|
|
||||||
unix (bind) type=stream addr=@@{udbus}/bus/systemctl/system,
|
|
||||||
|
|
||||||
dbus send bus=system path=/org/freedesktop/systemd1
|
dbus send bus=system path=/org/freedesktop/systemd1
|
||||||
interface=org.freedesktop.systemd1.Manager
|
interface=org.freedesktop.systemd1.Manager
|
||||||
member=GetUnitFileState
|
member=GetUnitFileState
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,8 @@ profile agetty @{exec_path} {
|
||||||
|
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
|
signal receive set=hup peer=@{p_systemd},
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{bin}/login rPx,
|
@{bin}/login rPx,
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ profile login @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
signal (send) set=(hup term),
|
signal send set=(hup term),
|
||||||
|
|
||||||
ptrace read,
|
ptrace read,
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@ profile login @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{bin}/@{shells} rUx,
|
@{shells_path} rUx,
|
||||||
|
|
||||||
@{etc_ro}/environment r,
|
@{etc_ro}/environment r,
|
||||||
@{etc_ro}/security/group.conf r,
|
@{etc_ro}/security/group.conf r,
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@ profile su @{exec_path} {
|
||||||
|
|
||||||
capability chown, # pseudo-terminal
|
capability chown, # pseudo-terminal
|
||||||
|
|
||||||
signal (send) set=(term,kill),
|
signal send set=(term kill),
|
||||||
signal (receive) set=(int,quit,term),
|
signal receive set=(int quit term),
|
||||||
signal (receive) set=(cont,hup) peer=sudo,
|
signal receive set=(cont hup) peer=sudo,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,6 @@ profile uname @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{lib}/@{multiarch}/ld-linux-*so* r,
|
|
||||||
@{lib}/@{multiarch}/libc.so* mr,
|
|
||||||
|
|
||||||
@{att}/dev/tty@{int} rw,
|
@{att}/dev/tty@{int} rw,
|
||||||
|
|
||||||
deny network,
|
deny network,
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,10 @@ profile blkdeactivate @{exec_path} flags=(complain) {
|
||||||
|
|
||||||
@{exec_path} rm,
|
@{exec_path} rm,
|
||||||
|
|
||||||
|
@{sh_path} rix,
|
||||||
@{bin}/dmsetup rPUx,
|
@{bin}/dmsetup rPUx,
|
||||||
@{bin}/grep rix,
|
@{bin}/grep rix,
|
||||||
|
@{bin}/touch rix,
|
||||||
@{bin}/lsblk rPx,
|
@{bin}/lsblk rPx,
|
||||||
@{bin}/lvm rPx,
|
@{bin}/lvm rPx,
|
||||||
@{bin}/multipathd rPx,
|
@{bin}/multipathd rPx,
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,8 @@ profile YACReader @{exec_path} flags=(attach_disconnected,mediate_deleted) {
|
||||||
|
|
||||||
owner @{PROC}/@{pid}/cmdline r,
|
owner @{PROC}/@{pid}/cmdline r,
|
||||||
owner @{PROC}/@{pid}/mountinfo r,
|
owner @{PROC}/@{pid}/mountinfo r,
|
||||||
|
owner @{PROC}/@{pid}/stat r,
|
||||||
|
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
||||||
|
|
||||||
include if exists <local/YACReader>
|
include if exists <local/YACReader>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue