feat(profile): general update.
This commit is contained in:
parent
9a612f754c
commit
5ea6ede589
21 changed files with 49 additions and 19 deletions
|
|
@ -153,6 +153,7 @@
|
||||||
@{PROC}/@{pids}/statm r,
|
@{PROC}/@{pids}/statm r,
|
||||||
@{PROC}/@{pids}/task/@{tid}/stat r,
|
@{PROC}/@{pids}/task/@{tid}/stat r,
|
||||||
@{PROC}/@{pids}/task/@{tid}/status r,
|
@{PROC}/@{pids}/task/@{tid}/status r,
|
||||||
|
@{PROC}/pressure/{memory,cpu,io} r,
|
||||||
@{PROC}/sys/fs/inotify/max_user_watches r,
|
@{PROC}/sys/fs/inotify/max_user_watches r,
|
||||||
@{PROC}/sys/kernel/yama/ptrace_scope r,
|
@{PROC}/sys/kernel/yama/ptrace_scope r,
|
||||||
@{PROC}/vmstat r,
|
@{PROC}/vmstat r,
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,8 @@ profile apt-methods-http @{exec_path} {
|
||||||
signal (receive) peer=unattended-upgrade,
|
signal (receive) peer=unattended-upgrade,
|
||||||
signal (receive) peer=update-manager,
|
signal (receive) peer=update-manager,
|
||||||
|
|
||||||
|
ptrace (read),
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
# apt-helper gets "no new privs" so "rix" it
|
# apt-helper gets "no new privs" so "rix" it
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@ profile child-dpkg {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
|
||||||
# Needed?
|
capability dac_read_search,
|
||||||
deny capability setgid,
|
capability setgid,
|
||||||
|
|
||||||
/{usr/,}bin/dpkg mr,
|
/{usr/,}bin/dpkg mr,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,12 +42,14 @@ profile evolution-calendar-factory @{exec_path} {
|
||||||
|
|
||||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||||
|
|
||||||
owner @{user_share_dirs}/evolution/calendar/{,**} rwk,
|
|
||||||
owner @{user_share_dirs}/evolution/tasks/system/ w,
|
|
||||||
owner @{user_share_dirs}/evolution/tasks/system/tasks.ics r,
|
|
||||||
owner @{user_cache_dirs}/evolution/calendar/{,**} rwk,
|
owner @{user_cache_dirs}/evolution/calendar/{,**} rwk,
|
||||||
owner @{user_cache_dirs}/evolution/tasks/{,**} rwk,
|
owner @{user_cache_dirs}/evolution/tasks/{,**} rwk,
|
||||||
|
|
||||||
|
owner @{user_share_dirs}/evolution/calendar/{,**} rwk,
|
||||||
|
owner @{user_share_dirs}/evolution/tasks/system/ w,
|
||||||
|
owner @{user_share_dirs}/evolution/tasks/system/tasks.ics* rw,
|
||||||
|
owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
||||||
|
|
||||||
@{PROC}/sys/kernel/osrelease r,
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
@{PROC}/cmdline r,
|
@{PROC}/cmdline r,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,7 @@ profile gdm-session-worker @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
owner @{run}/user/@{uid}/keyring/control rw,
|
owner @{run}/user/@{uid}/keyring/control rw,
|
||||||
|
|
||||||
|
@{run}/cockpit/active.motd r,
|
||||||
@{run}/faillock/[a-zA-z0-9]* rwk,
|
@{run}/faillock/[a-zA-z0-9]* rwk,
|
||||||
@{run}/gdm{3,}/custom.conf r,
|
@{run}/gdm{3,}/custom.conf r,
|
||||||
@{run}/motd.d/{,*} r,
|
@{run}/motd.d/{,*} r,
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@ profile networkctl @{exec_path} flags=(attach_disconnected) {
|
||||||
include <abstractions/dbus-strict>
|
include <abstractions/dbus-strict>
|
||||||
|
|
||||||
capability net_admin,
|
capability net_admin,
|
||||||
|
capability sys_module,
|
||||||
|
|
||||||
# Needed? (#FIXME#)
|
# Needed? (#FIXME#)
|
||||||
audit capability sys_resource,
|
audit capability sys_resource,
|
||||||
audit capability sys_module,
|
|
||||||
|
|
||||||
signal send peer=child-pager,
|
signal send peer=child-pager,
|
||||||
|
|
||||||
|
|
@ -27,7 +27,7 @@ profile networkctl @{exec_path} flags=(attach_disconnected) {
|
||||||
dbus send bus=system path=/org/freedesktop/network[0-9]
|
dbus send bus=system path=/org/freedesktop/network[0-9]
|
||||||
interface=org.freedesktop.DBus.Properties
|
interface=org.freedesktop.DBus.Properties
|
||||||
member=Get
|
member=Get
|
||||||
peer=(name=org.freedesktop.network[0-9]),
|
peer=(name=org.freedesktop.network1),
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ profile systemd-coredump @{exec_path} flags=(attach_disconnected,mediate_deleted
|
||||||
include <abstractions/openssl>
|
include <abstractions/openssl>
|
||||||
include <abstractions/systemd-common>
|
include <abstractions/systemd-common>
|
||||||
|
|
||||||
|
capability dac_override,
|
||||||
capability dac_read_search,
|
capability dac_read_search,
|
||||||
capability net_admin,
|
capability net_admin,
|
||||||
capability setgid,
|
capability setgid,
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ profile update-motd-updates-available @{exec_path} {
|
||||||
/etc/machine-id r,
|
/etc/machine-id r,
|
||||||
|
|
||||||
/var/lib/update-notifier/{,*} rw,
|
/var/lib/update-notifier/{,*} rw,
|
||||||
/var/lib/ubuntu-advantage/apt-esm/var/cache/apt/pkgcache.bin* rw,
|
/var/lib/ubuntu-advantage/apt-esm/var/cache/apt/*pkgcache.bin* rw,
|
||||||
|
|
||||||
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log rw,
|
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log rw,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ profile cockpit-bridge @{exec_path} {
|
||||||
|
|
||||||
signal (send) set=term peer=cockpit-pcp,
|
signal (send) set=term peer=cockpit-pcp,
|
||||||
signal (send) set=term peer=dbus-daemon,
|
signal (send) set=term peer=dbus-daemon,
|
||||||
|
signal (send) set=term peer=journalctl,
|
||||||
signal (send) set=term peer=ssh-agent,
|
signal (send) set=term peer=ssh-agent,
|
||||||
signal (send) set=term peer=sudo,
|
signal (send) set=term peer=sudo,
|
||||||
signal (send) set=term peer=unconfined,
|
signal (send) set=term peer=unconfined,
|
||||||
|
|
@ -36,9 +37,11 @@ profile cockpit-bridge @{exec_path} {
|
||||||
/usr/share/cockpit/{,**} r,
|
/usr/share/cockpit/{,**} r,
|
||||||
|
|
||||||
/etc/cockpit/{,**} r,
|
/etc/cockpit/{,**} r,
|
||||||
|
/etc/login.defs r,
|
||||||
/etc/machine-id r,
|
/etc/machine-id r,
|
||||||
/etc/motd r,
|
/etc/motd r,
|
||||||
/etc/shadow r,
|
/etc/shadow r,
|
||||||
|
/etc/shells r,
|
||||||
|
|
||||||
owner @{user_cache_dirs}/ssh-agent.[0-9A-Z]* rw,
|
owner @{user_cache_dirs}/ssh-agent.[0-9A-Z]* rw,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,13 @@ profile docker-proxy @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
|
||||||
capability net_admin,
|
capability net_admin,
|
||||||
|
capability net_bind_service,
|
||||||
|
|
||||||
network inet stream,
|
network inet stream,
|
||||||
network inet6 stream,
|
network inet6 stream,
|
||||||
|
|
||||||
|
signal (receive) set=int peer=dockerd,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ profile dockerd @{exec_path} flags=(attach_disconnected) {
|
||||||
ptrace (read) peer=docker-*,
|
ptrace (read) peer=docker-*,
|
||||||
ptrace (read) peer=unconfined,
|
ptrace (read) peer=unconfined,
|
||||||
|
|
||||||
|
signal (send) set=int peer=docker-proxy,
|
||||||
signal (send) set=kill peer=docker-*,
|
signal (send) set=kill peer=docker-*,
|
||||||
signal (send) set=term peer=containerd,
|
signal (send) set=term peer=containerd,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ profile virtinterfaced @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
|
ptrace (read) peer=virtqemud,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/{usr/,}lib/gconv/gconv-modules rm,
|
/{usr/,}lib/gconv/gconv-modules rm,
|
||||||
|
|
@ -33,6 +35,8 @@ profile virtinterfaced @{exec_path} flags=(attach_disconnected) {
|
||||||
@{sys}/class/ r,
|
@{sys}/class/ r,
|
||||||
@{sys}/class/net/ r,
|
@{sys}/class/net/ r,
|
||||||
@{sys}/devices/pci[0-9]*/**/net/{,**} r,
|
@{sys}/devices/pci[0-9]*/**/net/{,**} r,
|
||||||
|
@{sys}/devices/system/node/ r,
|
||||||
|
@{sys}/devices/system/node/node[0-9]*/meminfo r,
|
||||||
@{sys}/devices/virtual/net/{,**} r,
|
@{sys}/devices/virtual/net/{,**} r,
|
||||||
|
|
||||||
owner @{PROC}/@{pids}/stat r,
|
owner @{PROC}/@{pids}/stat r,
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,13 @@ profile virtnodedevd @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
|
ptrace (read) peer=virtqemud,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/{usr/,}bin/mdevctl rPx,
|
/{usr/,}bin/mdevctl rPx,
|
||||||
|
|
||||||
/usr/share/hwdata/pnp.ids r,
|
/usr/share/hwdata/*.ids r,
|
||||||
|
|
||||||
/etc/mdevctl.d/{,**} r,
|
/etc/mdevctl.d/{,**} r,
|
||||||
|
|
||||||
|
|
@ -46,7 +48,8 @@ profile virtnodedevd @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
@{run}/udev/data/c1:[0-9]* r, # For RAM disk
|
@{run}/udev/data/c1:[0-9]* r, # For RAM disk
|
||||||
@{run}/udev/data/c10:[0-9]* r, # For non-serial mice, misc features
|
@{run}/udev/data/c10:[0-9]* r, # For non-serial mice, misc features
|
||||||
@{run}/udev/data/c13:[0-9]* r, # for /dev/input/*
|
@{run}/udev/data/c13:[0-9]* r, # For /dev/input/*
|
||||||
|
@{run}/udev/data/c29:[0-9]* r, # For /dev/fb[0-9]*
|
||||||
@{run}/udev/data/c90:[0-9]* r, # For RAM, ROM, Flash
|
@{run}/udev/data/c90:[0-9]* r, # For RAM, ROM, Flash
|
||||||
@{run}/udev/data/c116:[0-9]* r, # For ALSA
|
@{run}/udev/data/c116:[0-9]* r, # For ALSA
|
||||||
@{run}/udev/data/c226:[0-9]* r, # For /dev/dri/card[0-9]*
|
@{run}/udev/data/c226:[0-9]* r, # For /dev/dri/card[0-9]*
|
||||||
|
|
@ -68,7 +71,7 @@ profile virtnodedevd @{exec_path} flags=(attach_disconnected) {
|
||||||
@{sys}/devices/pci[0-9]*/**/sriov_totalvfs r,
|
@{sys}/devices/pci[0-9]*/**/sriov_totalvfs r,
|
||||||
@{sys}/devices/system/node/ r,
|
@{sys}/devices/system/node/ r,
|
||||||
@{sys}/devices/system/node/node[0-9]*/meminfo r,
|
@{sys}/devices/system/node/node[0-9]*/meminfo r,
|
||||||
@{sys}/devices/virtual/dmi/id/{product_name,sys_vendor,board_vendor,bios_vendor,bios_date} r,
|
@{sys}/devices/virtual/dmi/id/{product_name,sys_vendor,board_vendor,bios_vendor,bios_date,bios_version,product_version} r,
|
||||||
@{sys}/devices/virtual/net/{,**} r,
|
@{sys}/devices/virtual/net/{,**} r,
|
||||||
@{sys}/kernel/iommu_groups/ r,
|
@{sys}/kernel/iommu_groups/ r,
|
||||||
@{sys}/kernel/iommu_groups/[0-9]*/devices/ r,
|
@{sys}/kernel/iommu_groups/[0-9]*/devices/ r,
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,17 @@ profile virtsecretd @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
network netlink raw,
|
network netlink raw,
|
||||||
|
|
||||||
|
ptrace (read) peer=virtqemud,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
owner @{user_config_dirs}/libvirt/secrets/ rw,
|
||||||
|
owner @{user_config_dirs}/libvirt/secrets/run/{,*} rwk,
|
||||||
|
|
||||||
@{run}/systemd/inhibit/*.ref rw,
|
@{run}/systemd/inhibit/*.ref rw,
|
||||||
owner @{run}/user/@{uid}/libvirt/common/system.token rwk,
|
owner @{run}/user/@{uid}/libvirt/common/system.token rwk,
|
||||||
owner @{run}/user/@{uid}/libvirt/secrets/ rw,
|
owner @{run}/user/@{uid}/libvirt/secrets/ rw,
|
||||||
owner @{run}/user/@{uid}/libvirt/secrets/run rw,
|
owner @{run}/user/@{uid}/libvirt/secrets/run/{,*} rwk,
|
||||||
owner @{run}/user/@{uid}/libvirt/secrets/run/* rwk,
|
|
||||||
owner @{run}/user/@{uid}/libvirt/virtsecretd* rwk,
|
owner @{run}/user/@{uid}/libvirt/virtsecretd* rwk,
|
||||||
|
|
||||||
@{run}/utmp rk,
|
@{run}/utmp rk,
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,8 @@ profile lvm @{exec_path} {
|
||||||
capability sys_nice,
|
capability sys_nice,
|
||||||
capability sys_rawio,
|
capability sys_rawio,
|
||||||
|
|
||||||
|
ptrace (read),
|
||||||
|
|
||||||
@{exec_path} rm,
|
@{exec_path} rm,
|
||||||
|
|
||||||
@{etc_rw}/lvm/** rwkl,
|
@{etc_rw}/lvm/** rwkl,
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ profile packagekitd @{exec_path} flags=(attach_disconnected) {
|
||||||
dbus receive bus=system path=/org/freedesktop/PackageKit
|
dbus receive bus=system path=/org/freedesktop/PackageKit
|
||||||
interface=org.freedesktop.{DBus.Introspectable,PackageKit}
|
interface=org.freedesktop.{DBus.Introspectable,PackageKit}
|
||||||
member={Introspect,StateHasChanged}
|
member={Introspect,StateHasChanged}
|
||||||
peer=(name=:*, label=apt),
|
peer=(name=:*),
|
||||||
|
|
||||||
dbus (send,receive) bus=system path=/[0-9]*_@{hex}
|
dbus (send,receive) bus=system path=/[0-9]*_@{hex}
|
||||||
interface=org.freedesktop.{DBus.Properties,PackageKit.Transaction},
|
interface=org.freedesktop.{DBus.Properties,PackageKit.Transaction},
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ profile steam-gameoverlayui @{exec_path} {
|
||||||
owner /tmp/miles_image_* mrw,
|
owner /tmp/miles_image_* mrw,
|
||||||
|
|
||||||
@{sys}/ r,
|
@{sys}/ r,
|
||||||
@{sys}/devices/system/cpu/cpufreq/policy[0-9]*/cpuinfo_max_freq r,
|
@{sys}/devices/system/cpu/cpu[0-9]*/** r,
|
||||||
@{sys}/kernel/ r,
|
@{sys}/kernel/ r,
|
||||||
|
|
||||||
@{PROC}/version r,
|
@{PROC}/version r,
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@ profile steam-reaper @{exec_path} {
|
||||||
owner /dev/shm/u@{uid}-Shm_@{hex} rw,
|
owner /dev/shm/u@{uid}-Shm_@{hex} rw,
|
||||||
owner /dev/shm/u@{uid}-ValveIPCSharedObj-Steam rwk,
|
owner /dev/shm/u@{uid}-ValveIPCSharedObj-Steam rwk,
|
||||||
|
|
||||||
|
@{sys}/devices/system/cpu/cpu[0-9]*/** r,
|
||||||
|
|
||||||
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
||||||
|
|
||||||
include if exists <local/steam-reaper>
|
include if exists <local/steam-reaper>
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ profile sudo @{exec_path} {
|
||||||
@{run}/ r,
|
@{run}/ r,
|
||||||
@{run}/faillock/{,*} rwk,
|
@{run}/faillock/{,*} rwk,
|
||||||
@{run}/resolvconf/resolv.conf r,
|
@{run}/resolvconf/resolv.conf r,
|
||||||
|
@{run}/systemd/sessions/* r,
|
||||||
owner @{run}/sudo/ rw,
|
owner @{run}/sudo/ rw,
|
||||||
owner @{run}/sudo/ts/ rw,
|
owner @{run}/sudo/ts/ rw,
|
||||||
owner @{run}/sudo/ts/* rwk,
|
owner @{run}/sudo/ts/* rwk,
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,6 @@ fdisk complain
|
||||||
file-roller complain
|
file-roller complain
|
||||||
firewalld complain
|
firewalld complain
|
||||||
flatpak-session-helper complain
|
flatpak-session-helper complain
|
||||||
fprintd attach_disconnected,complain
|
|
||||||
fsck-ext4 complain
|
fsck-ext4 complain
|
||||||
fuse-overlayfs complain
|
fuse-overlayfs complain
|
||||||
fusermount complain
|
fusermount complain
|
||||||
|
|
@ -277,8 +276,8 @@ virtinterfaced attach_disconnected,complain
|
||||||
virtiofsd complain,attach_disconnected
|
virtiofsd complain,attach_disconnected
|
||||||
virtlockd complain
|
virtlockd complain
|
||||||
virtnetworkd complain
|
virtnetworkd complain
|
||||||
virtnodedevd complain
|
virtnodedevd attach_disconnected,complain
|
||||||
virtsecretd complain
|
virtsecretd attach_disconnected,complain
|
||||||
virtstoraged attach_disconnected,complain
|
virtstoraged attach_disconnected,complain
|
||||||
wg complain
|
wg complain
|
||||||
wg-quick complain
|
wg-quick complain
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,12 @@ list-oem-metapackages complain
|
||||||
livepatch-notification complain
|
livepatch-notification complain
|
||||||
notify-reboot-required complain
|
notify-reboot-required complain
|
||||||
package-system-locked attach_disconnected,complain
|
package-system-locked attach_disconnected,complain
|
||||||
|
pro complain
|
||||||
release-upgrade-motd complain
|
release-upgrade-motd complain
|
||||||
software-properties-gtk
|
|
||||||
software-properties-gtk complain
|
software-properties-gtk complain
|
||||||
ubuntu-advantage complain
|
ubuntu-advantage complain
|
||||||
ubuntu-advantage-notification complain
|
ubuntu-advantage-notification complain
|
||||||
|
ubuntu-distro-info complain
|
||||||
ubuntu-report complain
|
ubuntu-report complain
|
||||||
update-manager attach_disconnected,complain
|
update-manager attach_disconnected,complain
|
||||||
update-motd-fsck-at-reboot complain
|
update-motd-fsck-at-reboot complain
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue