mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
Update profiles.
This commit is contained in:
parent
1956680160
commit
723695c626
10 changed files with 28 additions and 9 deletions
|
@ -58,7 +58,7 @@ profile gnome-control-center @{exec_path} flags=(attach_disconnected) {
|
||||||
owner @{user_cache_dirs}/mesa_shader_cache/index rw,
|
owner @{user_cache_dirs}/mesa_shader_cache/index rw,
|
||||||
owner @{user_cache_dirs}/thumbnails/{,**} rw,
|
owner @{user_cache_dirs}/thumbnails/{,**} rw,
|
||||||
owner @{user_config_dirs}/gnome-control-center/{,**} rw,
|
owner @{user_config_dirs}/gnome-control-center/{,**} rw,
|
||||||
owner @{user_config_dirs}/ibus/bus/[0-9a-f]*-unix-wayland-[0-9] r,
|
owner @{user_config_dirs}/ibus/bus/{,[0-9a-f]*-unix-wayland-[0-9]} r,
|
||||||
owner @{user_share_dirs}/backgrounds/{,**} rw,
|
owner @{user_share_dirs}/backgrounds/{,**} rw,
|
||||||
owner @{user_share_dirs}/gvfs-metadata/home{,-*.log} r,
|
owner @{user_share_dirs}/gvfs-metadata/home{,-*.log} r,
|
||||||
owner @{user_share_dirs}/icc/{,edid-*} r,
|
owner @{user_share_dirs}/icc/{,edid-*} r,
|
||||||
|
|
|
@ -22,7 +22,7 @@ profile gsd-housekeeping @{exec_path} flags=(attach_disconnected) {
|
||||||
/usr/share/gdm/greeter-dconf-defaults r,
|
/usr/share/gdm/greeter-dconf-defaults r,
|
||||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||||
|
|
||||||
owner @{user_cache_dirs}/thumbnails/fail/gnome-thumbnail-factory/ r,
|
owner @{user_cache_dirs}/thumbnails/{,**} rw,
|
||||||
|
|
||||||
include <abstractions/dconf>
|
include <abstractions/dconf>
|
||||||
owner @{run}/user/@{uid}/dconf/ rw,
|
owner @{run}/user/@{uid}/dconf/ rw,
|
||||||
|
|
|
@ -48,6 +48,7 @@ profile pacman @{exec_path} {
|
||||||
/{usr/,}bin/dot rix,
|
/{usr/,}bin/dot rix,
|
||||||
/{usr/,}bin/env rix,
|
/{usr/,}bin/env rix,
|
||||||
/{usr/,}bin/rm rix,
|
/{usr/,}bin/rm rix,
|
||||||
|
/{usr/,}bin/setcap rix,
|
||||||
/{usr/,}bin/vercmp rix,
|
/{usr/,}bin/vercmp rix,
|
||||||
/{usr/,}bin/xmlcatalog rix,
|
/{usr/,}bin/xmlcatalog rix,
|
||||||
/{usr/,}lib/ghc-*/bin/ghc-pkg rix,
|
/{usr/,}lib/ghc-*/bin/ghc-pkg rix,
|
||||||
|
|
|
@ -10,11 +10,16 @@ include <tunables/global>
|
||||||
profile pacman-hook-depmod @{exec_path} {
|
profile pacman-hook-depmod @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability dac_read_search,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/{usr/,}bin/bash rix,
|
/{usr/,}bin/basename rix,
|
||||||
/{usr/,}bin/kmod rPx,
|
/{usr/,}bin/bash rix,
|
||||||
/{usr/,}bin/depmod rPx,
|
/{usr/,}bin/depmod rPx,
|
||||||
|
/{usr/,}bin/kmod rPx,
|
||||||
|
|
||||||
|
/dev/tty rw,
|
||||||
|
|
||||||
# Inherit Silencer
|
# Inherit Silencer
|
||||||
deny network inet6 stream,
|
deny network inet6 stream,
|
||||||
|
|
|
@ -10,13 +10,18 @@ include <tunables/global>
|
||||||
profile pacman-hook-mkinitcpio-remove @{exec_path} {
|
profile pacman-hook-mkinitcpio-remove @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability dac_read_search,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/{usr/,}bin/bash rix,
|
/{usr/,}bin/bash rix,
|
||||||
/{usr/,}bin/rm rix,
|
/{usr/,}bin/cmp rix,
|
||||||
/{usr/,}bin/mv rix,
|
/{usr/,}bin/mv rix,
|
||||||
|
/{usr/,}bin/rm rix,
|
||||||
|
/{usr/,}bin/sed rix,
|
||||||
|
|
||||||
/usr/share/mkinitcpio/*.preset r,
|
/usr/share/mkinitcpio/*.preset r,
|
||||||
|
/etc/mkinitcpio.d/*.preset rw,
|
||||||
|
|
||||||
/boot/vmlinuz-* rw,
|
/boot/vmlinuz-* rw,
|
||||||
/boot/initramfs-*.img rw,
|
/boot/initramfs-*.img rw,
|
||||||
|
|
|
@ -25,11 +25,13 @@ profile systemd-timesyncd @{exec_path} {
|
||||||
|
|
||||||
/etc/adjtime r,
|
/etc/adjtime r,
|
||||||
/etc/systemd/timesyncd.conf r,
|
/etc/systemd/timesyncd.conf r,
|
||||||
|
/etc/systemd/timesyncd.conf.d/{,**} r,
|
||||||
|
|
||||||
owner /var/lib/systemd/timesync/clock rw,
|
owner /var/lib/systemd/timesync/clock rw,
|
||||||
|
|
||||||
owner @{run}/systemd/timesync/synchronized rw,
|
owner @{run}/systemd/timesync/synchronized rw,
|
||||||
@{run}/systemd/netif/state r,
|
@{run}/systemd/netif/state r,
|
||||||
|
@{run}/resolvconf/*.conf r,
|
||||||
|
|
||||||
include if exists <local/systemd-timesyncd>
|
include if exists <local/systemd-timesyncd>
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,9 @@ profile browserpass @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
owner @{PROC}/@{pid}/mountinfo r,
|
owner @{PROC}/@{pid}/mountinfo r,
|
||||||
|
|
||||||
# Silencer
|
# Inherit Silencer
|
||||||
|
deny network inet6 dgram,
|
||||||
|
deny network inet dgram,
|
||||||
deny network inet6 stream,
|
deny network inet6 stream,
|
||||||
deny network inet stream,
|
deny network inet stream,
|
||||||
deny owner @{user_share_dirs}/gvfs-metadata/{,**} r,
|
deny owner @{user_share_dirs}/gvfs-metadata/{,**} r,
|
||||||
|
|
|
@ -80,6 +80,7 @@ profile htop @{exec_path} {
|
||||||
@{sys}/devices/pci[0-9]*/**/i2c-[0-9]*/name r,
|
@{sys}/devices/pci[0-9]*/**/i2c-[0-9]*/name r,
|
||||||
@{sys}/class/hwmon/ r,
|
@{sys}/class/hwmon/ r,
|
||||||
@{sys}/class/power_supply/ r,
|
@{sys}/class/power_supply/ r,
|
||||||
|
@{sys}/devices/*/name r,
|
||||||
@{sys}/devices/**/power_supply/**/{uevent,type,online} r,
|
@{sys}/devices/**/power_supply/**/{uevent,type,online} r,
|
||||||
@{sys}/devices/**/hwmon/ r,
|
@{sys}/devices/**/hwmon/ r,
|
||||||
@{sys}/devices/**/hwmon/{name,temp*} r,
|
@{sys}/devices/**/hwmon/{name,temp*} r,
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
/{usr/,}bin/{c,k,tc,z}sh Px -> default_user,
|
/{usr/,}bin/{c,k,tc,z}sh Px -> default_user,
|
||||||
}
|
}
|
||||||
|
|
||||||
# morfik is a confined user. The hat contains only the permissions necessary
|
# USER is a confined user. The hat contains only the permissions necessary
|
||||||
# to transition to gray's login shell. All other permissions have been
|
# to transition to gray's login shell. All other permissions have been
|
||||||
# moved into the confined_user profile.
|
# moved into the confined_user profile.
|
||||||
^morfik {
|
^USER {
|
||||||
include <abstractions/authentication>
|
include <abstractions/authentication>
|
||||||
include <abstractions/nameservice>
|
include <abstractions/nameservice>
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,9 @@ profile xdg-mime @{exec_path} flags=(attach_disconnected) {
|
||||||
# For shell pwd
|
# For shell pwd
|
||||||
owner @{HOME}/ r,
|
owner @{HOME}/ r,
|
||||||
|
|
||||||
|
@{sys}/devices/platform/**/hwmon/hwmon[0-9]*/temp* r,
|
||||||
|
@{sys}/devices/platform/**/hwmon/hwmon[0-9]*/fan* r,
|
||||||
|
|
||||||
# file_inherit
|
# file_inherit
|
||||||
@{MOUNTS}/** rw,
|
@{MOUNTS}/** rw,
|
||||||
/dev/dri/card[0-9]* rw,
|
/dev/dri/card[0-9]* rw,
|
||||||
|
|
Loading…
Reference in a new issue