feat(profile): various minor update.
This commit is contained in:
parent
d49e93523f
commit
334b48749a
21 changed files with 51 additions and 10 deletions
|
|
@ -63,6 +63,7 @@ profile dbus-system flags=(attach_disconnected) {
|
|||
|
||||
@{att}/@{run}/systemd/inhibit/@{int}.ref rw,
|
||||
@{att}/@{run}/systemd/sessions/{,@{l}}@{int}.ref rw,
|
||||
|
||||
@{run}/systemd/notify w,
|
||||
@{run}/systemd/users/@{int} r,
|
||||
|
||||
|
|
@ -78,6 +79,7 @@ profile dbus-system flags=(attach_disconnected) {
|
|||
@{PROC}/cmdline r,
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/fdinfo/@{int} r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
owner @{PROC}/@{pid}/oom_score_adj rw,
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ profile lvm @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
@{etc_rw}/lvm/** rwkl,
|
||||
/etc/multipath.conf r,
|
||||
/etc/multipath/* r,
|
||||
|
||||
@{run}/lock/ rw,
|
||||
@{run}/lock/lvm/ rw,
|
||||
|
|
|
|||
|
|
@ -269,6 +269,8 @@ profile gnome-shell @{exec_path} flags=(attach_disconnected,mediate_deleted) {
|
|||
owner @{user_share_dirs}/icc/.goutputstream-@{rand6} rw,
|
||||
owner @{user_share_dirs}/icc/edid-@{hex32}.icc rw,
|
||||
|
||||
owner @{user_share_dirs}/applications/org.gnome.Shell.Extensions.GSConnect{,.Preferences}.desktop rw,
|
||||
owner @{user_share_dirs}/applications/org.gnome.Shell.Extensions.GSConnect{,.Preferences}.desktop.@{rand6} w,
|
||||
owner @{user_cache_dirs}/evolution/addressbook/*/PHOTO-* r,
|
||||
owner @{user_cache_dirs}/gnome-boxes/*.png r,
|
||||
owner @{user_cache_dirs}/gnome-photos/{,**} r,
|
||||
|
|
|
|||
|
|
@ -9,13 +9,18 @@ include <tunables/global>
|
|||
@{exec_path} = @{bin}/chpasswd
|
||||
profile chpasswd @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
capability audit_write,
|
||||
capability chown,
|
||||
capability fsetid,
|
||||
capability net_admin,
|
||||
capability setuid,
|
||||
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{etc_ro}/login.defs r,
|
||||
|
|
@ -32,6 +37,9 @@ profile chpasswd @{exec_path} {
|
|||
/etc/shadow.lock w,
|
||||
/etc/shadow+ rw,
|
||||
|
||||
/etc/pam.d/chpasswd r,
|
||||
/etc/pam.d/common-* r,
|
||||
|
||||
include if exists <local/chpasswd>
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,11 @@ profile snapd @{exec_path} {
|
|||
member={SetWallMessage,ScheduleShutdown}
|
||||
peer=(name=org.freedesktop.login1, label=systemd-logind),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/timedate1
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member=Get
|
||||
peer=(name=org.freedesktop.timedate1, label=unconfined),
|
||||
|
||||
@{exec_path} mrix,
|
||||
|
||||
@{bin}/adduser rPx,
|
||||
|
|
|
|||
|
|
@ -45,7 +45,8 @@ profile ssh @{exec_path} {
|
|||
|
||||
audit owner @{tmp}/ssh-*/{,agent.@{int}} rwkl,
|
||||
|
||||
owner @{run}/user/@{uid}/gvfsd-sftp/@{hex}.@{hex16} rwl -> @{run}/user/@{uid}/gvfsd-sftp/@{hex}.@{hex16},
|
||||
owner @{run}/user/@{uid}/gvfsd-sftp/@{hex} wl -> @{run}/user/@{uid}/gvfsd-sftp/@{hex}.@{rand},
|
||||
owner @{run}/user/@{uid}/gvfsd-sftp/@{hex}.@{rand} wl -> @{run}/user/@{uid}/gvfsd-sftp/@{hex}.@{rand},
|
||||
owner @{run}/user/@{uid}/keyring/ssh rw,
|
||||
|
||||
owner @{PROC}/@{pid}/loginuid r,
|
||||
|
|
|
|||
|
|
@ -66,8 +66,8 @@ profile sshd @{exec_path} flags=(attach_disconnected) {
|
|||
@{bin}/false rix,
|
||||
@{bin}/nologin rPx,
|
||||
@{bin}/passwd rPx,
|
||||
@{lib}/openssh/sftp-server rPx,
|
||||
@{lib}/ssh/sshd-session rix,
|
||||
@{lib}/{openssh,ssh}/sftp-server rPx,
|
||||
@{lib}/{openssh,ssh}/sshd-session rix,
|
||||
|
||||
@{etc_ro}/environment r,
|
||||
@{etc_ro}/security/limits.d/{,*.conf} r,
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ profile systemd-coredump @{exec_path} flags=(attach_disconnected,mediate_deleted
|
|||
/etc/systemd/coredump.conf r,
|
||||
/etc/systemd/coredump.conf.d/{,**} r,
|
||||
|
||||
owner @{HOME}/**.so r,
|
||||
|
||||
/var/lib/systemd/coredump/{,**} rwl,
|
||||
|
||||
@{PROC}/@{pids}/cgroup r,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ profile systemd-update-utmp @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
network netlink raw,
|
||||
|
||||
unix (bind) type=stream addr=@@{udbus}/bus/systemd-update-/,
|
||||
unix bind type=stream addr=@@{udbus}/bus/systemd-update-/,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ abi <abi/4.0>,
|
|||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/systemd/systemd-vconsole-setup
|
||||
profile systemd-vconsole-setup @{exec_path} {
|
||||
profile systemd-vconsole-setup @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ profile release-upgrade-motd @{exec_path} {
|
|||
|
||||
/var/lib/ubuntu-release-upgrader/release-upgrade-available rw,
|
||||
|
||||
@{run}/motd.dynamic.new w,
|
||||
|
||||
/dev/tty@{int} rw,
|
||||
|
||||
include if exists <local/release-upgrade-motd>
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@ profile update-motd-fsck-at-reboot @{exec_path} {
|
|||
|
||||
/var/lib/update-notifier/fsck-at-reboot rw,
|
||||
|
||||
@{run}/motd.dynamic.new w,
|
||||
|
||||
@{PROC}/uptime r,
|
||||
|
||||
/dev/tty@{int} rw,
|
||||
|
|
|
|||
|
|
@ -62,7 +62,6 @@ profile login @{exec_path} flags=(attach_disconnected) {
|
|||
@{att}/@{run}/systemd/sessions/@{int}.ref w,
|
||||
|
||||
@{run}/credentials/getty@tty@{int}.service/ r,
|
||||
@{run}/dbus/system_bus_socket rw,
|
||||
@{run}/faillock/@{user} rwk,
|
||||
@{run}/motd.d/{,*} r,
|
||||
@{run}/motd.dynamic{,.new} rw,
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ profile uname @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{lib}/@{multiarch}/ld-linux-*so* r,
|
||||
@{lib}/@{multiarch}/libc.so* mr,
|
||||
|
||||
@{att}/dev/tty@{int} rw,
|
||||
|
||||
deny network,
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ profile dockerd @{exec_path} flags=(attach_disconnected) {
|
|||
capability kill,
|
||||
capability mknod,
|
||||
capability net_admin,
|
||||
capability net_raw,
|
||||
capability setfcap,
|
||||
capability sys_admin,
|
||||
capability sys_chroot,
|
||||
|
|
@ -31,6 +32,7 @@ profile dockerd @{exec_path} flags=(attach_disconnected) {
|
|||
network inet6 dgram,
|
||||
network inet6 stream,
|
||||
network netlink raw,
|
||||
network packet dgram,
|
||||
|
||||
mount /tmp/containerd-mount@{int}/,
|
||||
mount /var/lib/docker/**/,
|
||||
|
|
@ -91,6 +93,7 @@ profile dockerd @{exec_path} flags=(attach_disconnected) {
|
|||
owner @{run}/docker/** rwlk,
|
||||
owner @{run}/docker.pid rw,
|
||||
|
||||
@{sys}/devices/virtual/net/** r,
|
||||
@{sys}/fs/cgroup/cgroup.controllers r,
|
||||
@{sys}/fs/cgroup/cpuset.cpus.effective r,
|
||||
@{sys}/fs/cgroup/cpuset.mems.effective r,
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ profile console-setup @{exec_path} {
|
|||
@{bin}/uname rPx,
|
||||
@{bin}/mkdir rix,
|
||||
|
||||
@{run}/console-setup/ rw,
|
||||
@{run}/console-setup/boot_completed w,
|
||||
|
||||
include if exists <local/console-setup>
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ profile file-roller @{exec_path} {
|
|||
@{run}/mount/utab r,
|
||||
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
owner @{PROC}/@{pid}/stat r,
|
||||
|
||||
include if exists <local/file-roller>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ profile fractal @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
owner @{tmp}/.@{rand6} rw,
|
||||
owner @{tmp}/.goutputstream-@{rand6} rw,
|
||||
owner @{tmp}/@{rand6} rw,
|
||||
owner @{tmp}/etilqs_@{hex16} rw,
|
||||
|
||||
owner @{run}/user/@{uid}/fractal/{,**} rw,
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ profile landscape-sysinfo.wrapper @{exec_path} {
|
|||
|
||||
/var/lib/landscape/landscape-sysinfo.cache rw,
|
||||
|
||||
@{run}/motd.dynamic.new w,
|
||||
|
||||
@{PROC}/loadavg r,
|
||||
|
||||
/dev/tty@{int} rw,
|
||||
|
|
|
|||
|
|
@ -154,6 +154,8 @@ profile run-parts @{exec_path} {
|
|||
|
||||
owner @{sys}/class/power_supply/ r,
|
||||
|
||||
@{run}/motd.dynamic.new w,
|
||||
|
||||
/dev/tty@{int} rw,
|
||||
|
||||
profile motd {
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ profile tlp @{exec_path} flags=(attach_disconnected) {
|
|||
@{bin}/mktemp rix,
|
||||
@{bin}/readlink rix,
|
||||
@{bin}/rm rix,
|
||||
@{bin}/sed rix,
|
||||
@{bin}/sort rix,
|
||||
@{bin}/systemctl rCx -> systemctl,
|
||||
@{bin}/touch rix,
|
||||
|
|
@ -71,7 +72,9 @@ profile tlp @{exec_path} flags=(attach_disconnected) {
|
|||
@{run}/udev/data/+platform:* r,
|
||||
|
||||
@{sys}/bus/pci/devices/ r,
|
||||
@{sys}/devices/@{pci}/ r,
|
||||
@{sys}/devices/@{pci}/{,**/}power/control w,
|
||||
@{sys}/devices/@{pci}/class r,
|
||||
@{sys}/devices/system/cpu/cpufreq/policy@{int}/energy_performance_preference rw,
|
||||
@{sys}/firmware/acpi/platform_profile* rw,
|
||||
@{sys}/firmware/acpi/pm_profile* rw,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue