mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
Various updates (#209)
This commit is contained in:
parent
5d7ce06a62
commit
aaed7a25da
8 changed files with 35 additions and 12 deletions
|
@ -8,7 +8,7 @@ abi <abi/3.0>,
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = @{bin}/grub-mkconfig
|
@{exec_path} = @{bin}/grub-mkconfig
|
||||||
profile grub-mkconfig @{exec_path} {
|
profile grub-mkconfig @{exec_path} flags=(attach_disconnected) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@ profile grub-mkconfig @{exec_path} {
|
||||||
@{bin}/mktemp rix,
|
@{bin}/mktemp rix,
|
||||||
@{bin}/mount rPx,
|
@{bin}/mount rPx,
|
||||||
@{bin}/mountpoint rix,
|
@{bin}/mountpoint rix,
|
||||||
|
@{bin}/mv rix,
|
||||||
@{bin}/os-prober rPx,
|
@{bin}/os-prober rPx,
|
||||||
@{bin}/paste rix,
|
@{bin}/paste rix,
|
||||||
@{bin}/readlink rix,
|
@{bin}/readlink rix,
|
||||||
|
@ -59,6 +60,10 @@ profile grub-mkconfig @{exec_path} {
|
||||||
@{bin}/which{.debianutils,} rix,
|
@{bin}/which{.debianutils,} rix,
|
||||||
/etc/grub.d/{**,} rix,
|
/etc/grub.d/{**,} rix,
|
||||||
|
|
||||||
|
@{lib}/gconv/gconv-modules r,
|
||||||
|
@{lib}/gconv/gconv-modules.d/{,gconv-modules-extra.conf} r,
|
||||||
|
@{lib}/libostree/grub[0-9]-@{int}_ostree rix,
|
||||||
|
|
||||||
/boot/{**,} r,
|
/boot/{**,} r,
|
||||||
/boot/grub/{**,} rw,
|
/boot/grub/{**,} rw,
|
||||||
|
|
||||||
|
@ -67,7 +72,7 @@ profile grub-mkconfig @{exec_path} {
|
||||||
/etc/default/grub.d/{*,} r,
|
/etc/default/grub.d/{*,} r,
|
||||||
|
|
||||||
/usr/share/grub/{**,} r,
|
/usr/share/grub/{**,} r,
|
||||||
/usr/share/terminfo/x/xterm-256color r,
|
/usr/share/terminfo/{,x/xterm-256color} r,
|
||||||
|
|
||||||
/.zfs/snapshot/*/boot/ r,
|
/.zfs/snapshot/*/boot/ r,
|
||||||
/.zfs/snapshot/*/etc/{machine-id,} r,
|
/.zfs/snapshot/*/etc/{machine-id,} r,
|
||||||
|
@ -83,5 +88,7 @@ profile grub-mkconfig @{exec_path} {
|
||||||
|
|
||||||
@{sys}/firmware/efi/efivars/OsIndicationsSupported-@{uuid} r,
|
@{sys}/firmware/efi/efivars/OsIndicationsSupported-@{uuid} r,
|
||||||
|
|
||||||
|
/dev/tty@{int} rw,
|
||||||
|
|
||||||
include if exists <local/grub-mkconfig>
|
include if exists <local/grub-mkconfig>
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,7 @@ profile systemd-udevd @{exec_path} flags=(attach_disconnected,complain) {
|
||||||
@{bin}/lvm rPx,
|
@{bin}/lvm rPx,
|
||||||
@{bin}/mknod rPx,
|
@{bin}/mknod rPx,
|
||||||
@{bin}/multipath rPx,
|
@{bin}/multipath rPx,
|
||||||
|
@{bin}/nfsrahead rix,
|
||||||
@{bin}/nohup rix,
|
@{bin}/nohup rix,
|
||||||
@{bin}/perl rix,
|
@{bin}/perl rix,
|
||||||
@{bin}/readlink rix,
|
@{bin}/readlink rix,
|
||||||
|
@ -76,6 +77,8 @@ profile systemd-udevd @{exec_path} flags=(attach_disconnected,complain) {
|
||||||
|
|
||||||
/etc/default/* r,
|
/etc/default/* r,
|
||||||
|
|
||||||
|
/etc/nfs.conf rk,
|
||||||
|
|
||||||
/etc/udev/ r,
|
/etc/udev/ r,
|
||||||
/etc/udev/udev.conf r,
|
/etc/udev/udev.conf r,
|
||||||
/etc/udev/rules.d/ r,
|
/etc/udev/rules.d/ r,
|
||||||
|
@ -108,6 +111,7 @@ profile systemd-udevd @{exec_path} flags=(attach_disconnected,complain) {
|
||||||
@{PROC}/driver/nvidia/gpus/*/information r,
|
@{PROC}/driver/nvidia/gpus/*/information r,
|
||||||
owner @{PROC}/@{pid}/fd/ r,
|
owner @{PROC}/@{pid}/fd/ r,
|
||||||
owner @{PROC}/@{pid}/loginuid r,
|
owner @{PROC}/@{pid}/loginuid r,
|
||||||
|
@{PROC}/@{pid}/mountinfo r,
|
||||||
owner @{PROC}/@{pid}/oom_score_adj rw,
|
owner @{PROC}/@{pid}/oom_score_adj rw,
|
||||||
|
|
||||||
/dev/ rw,
|
/dev/ rw,
|
||||||
|
|
|
@ -8,7 +8,7 @@ abi <abi/3.0>,
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = @{bin}/blkid
|
@{exec_path} = @{bin}/blkid
|
||||||
profile blkid @{exec_path} {
|
profile blkid @{exec_path} flags=(attach_disconnected) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
include <abstractions/disks-read>
|
include <abstractions/disks-read>
|
||||||
|
@ -35,5 +35,7 @@ profile blkid @{exec_path} {
|
||||||
# For the EVALUATE=scan method
|
# For the EVALUATE=scan method
|
||||||
@{PROC}/partitions r,
|
@{PROC}/partitions r,
|
||||||
|
|
||||||
|
/dev/tty@{int} rw,
|
||||||
|
|
||||||
include if exists <local/blkid>
|
include if exists <local/blkid>
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ abi <abi/3.0>,
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = @{bin}/{btrfs,btrfsck}
|
@{exec_path} = @{bin}/{btrfs,btrfsck}
|
||||||
profile btrfs @{exec_path} {
|
profile btrfs @{exec_path} flags=(attach_disconnected) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/disks-write>
|
include <abstractions/disks-write>
|
||||||
include <abstractions/user-download-strict>
|
include <abstractions/user-download-strict>
|
||||||
|
@ -47,10 +47,9 @@ profile btrfs @{exec_path} {
|
||||||
@{PROC}/partitions r,
|
@{PROC}/partitions r,
|
||||||
owner @{PROC}/@{pid}/mounts r,
|
owner @{PROC}/@{pid}/mounts r,
|
||||||
|
|
||||||
/dev/btrfs-control rw,
|
/dev/btrfs-control rw,
|
||||||
/dev/tty@{int} rw,
|
/dev/tty@{int} rw,
|
||||||
owner /dev/pts/@{int} rw,
|
|
||||||
|
|
||||||
|
|
||||||
include if exists <local/btrfs>
|
include if exists <local/btrfs>
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ profile kmod @{exec_path} flags=(attach_disconnected) {
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
include <abstractions/openssl>
|
include <abstractions/openssl>
|
||||||
|
|
||||||
|
capability dac_read_search,
|
||||||
capability dac_override,
|
capability dac_override,
|
||||||
capability mknod,
|
capability mknod,
|
||||||
capability net_admin,
|
capability net_admin,
|
||||||
|
@ -70,6 +71,8 @@ profile kmod @{exec_path} flags=(attach_disconnected) {
|
||||||
@{PROC}/cmdline r,
|
@{PROC}/cmdline r,
|
||||||
@{PROC}/modules r,
|
@{PROC}/modules r,
|
||||||
|
|
||||||
|
/dev/tty@{int} rw,
|
||||||
|
|
||||||
deny /apparmor/.null rw,
|
deny /apparmor/.null rw,
|
||||||
deny @{user_share_dirs}/gvfs-metadata/* r,
|
deny @{user_share_dirs}/gvfs-metadata/* r,
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ abi <abi/3.0>,
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = @{bin}/lvm
|
@{exec_path} = @{bin}/lvm
|
||||||
profile lvm @{exec_path} {
|
profile lvm @{exec_path} flags=(attach_disconnected) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
include <abstractions/dbus-strict>
|
include <abstractions/dbus-strict>
|
||||||
|
@ -43,5 +43,7 @@ profile lvm @{exec_path} {
|
||||||
/dev/**/ r,
|
/dev/**/ r,
|
||||||
/dev/mapper/control rw,
|
/dev/mapper/control rw,
|
||||||
|
|
||||||
|
deny /apparmor/.null rw,
|
||||||
|
|
||||||
include if exists <local/lvm>
|
include if exists <local/lvm>
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ profile os-prober @{exec_path} flags=(attach_disconnected) {
|
||||||
@{bin}/{,ba,da}sh rix,
|
@{bin}/{,ba,da}sh rix,
|
||||||
@{bin}/{e,f,}grep rix,
|
@{bin}/{e,f,}grep rix,
|
||||||
@{bin}/blkid rPx,
|
@{bin}/blkid rPx,
|
||||||
|
@{bin}/btrfs rPx,
|
||||||
@{bin}/cat rix,
|
@{bin}/cat rix,
|
||||||
@{bin}/cut rix,
|
@{bin}/cut rix,
|
||||||
@{bin}/dmraid rPUx,
|
@{bin}/dmraid rPUx,
|
||||||
|
@ -35,6 +36,7 @@ profile os-prober @{exec_path} flags=(attach_disconnected) {
|
||||||
@{bin}/lvm rPx,
|
@{bin}/lvm rPx,
|
||||||
@{bin}/mkdir rix,
|
@{bin}/mkdir rix,
|
||||||
@{bin}/mktemp rix,
|
@{bin}/mktemp rix,
|
||||||
|
@{bin}/mount rix,
|
||||||
@{bin}/multipath rPx,
|
@{bin}/multipath rPx,
|
||||||
@{bin}/readlink rix,
|
@{bin}/readlink rix,
|
||||||
@{bin}/rm rix,
|
@{bin}/rm rix,
|
||||||
|
@ -43,6 +45,7 @@ profile os-prober @{exec_path} flags=(attach_disconnected) {
|
||||||
@{bin}/udevadm rPx,
|
@{bin}/udevadm rPx,
|
||||||
@{bin}/umount rix,
|
@{bin}/umount rix,
|
||||||
@{bin}/uname rix,
|
@{bin}/uname rix,
|
||||||
|
@{bin}/which rix,
|
||||||
@{lib}/newns rix,
|
@{lib}/newns rix,
|
||||||
@{lib}/os-prober/* rix,
|
@{lib}/os-prober/* rix,
|
||||||
@{lib}/os-probes/{,**} rix,
|
@{lib}/os-probes/{,**} rix,
|
||||||
|
@ -65,7 +68,10 @@ profile os-prober @{exec_path} flags=(attach_disconnected) {
|
||||||
@{sys}/devices/virtual/block/*/ r,
|
@{sys}/devices/virtual/block/*/ r,
|
||||||
|
|
||||||
@{PROC}/swaps r,
|
@{PROC}/swaps r,
|
||||||
|
owner @{PROC}/@{pid}/mountinfo r,
|
||||||
owner @{PROC}/@{pid}/mounts r,
|
owner @{PROC}/@{pid}/mounts r,
|
||||||
|
|
||||||
|
/dev/tty@{int} rw,
|
||||||
|
|
||||||
include if exists <local/os-prober>
|
include if exists <local/os-prober>
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,7 +120,7 @@ grub-glue-efi complain
|
||||||
grub-kbdcomp complain
|
grub-kbdcomp complain
|
||||||
grub-macbless complain
|
grub-macbless complain
|
||||||
grub-menulst2cfg complain
|
grub-menulst2cfg complain
|
||||||
grub-mkconfig complain
|
grub-mkconfig attach_disconnected,complain
|
||||||
grub-mkdevicemap complain
|
grub-mkdevicemap complain
|
||||||
grub-mkfont complain
|
grub-mkfont complain
|
||||||
grub-mkimage complain
|
grub-mkimage complain
|
||||||
|
@ -188,7 +188,7 @@ locale-gen complain
|
||||||
localectl complain
|
localectl complain
|
||||||
login attach_disconnected,complain
|
login attach_disconnected,complain
|
||||||
loginctl complain
|
loginctl complain
|
||||||
lvm complain
|
lvm attach_disconnected,complain
|
||||||
lvmconfig complain
|
lvmconfig complain
|
||||||
lvmdump complain
|
lvmdump complain
|
||||||
lvmpolld complain
|
lvmpolld complain
|
||||||
|
|
Loading…
Reference in a new issue