feat(profile): general update.
This commit is contained in:
parent
05b47adb13
commit
42fc4622ed
42 changed files with 154 additions and 94 deletions
|
|
@ -77,6 +77,7 @@ profile pacman @{exec_path} {
|
|||
@{bin}/grep rix,
|
||||
@{bin}/groupadd rPx,
|
||||
@{bin}/gtk-query-immodules-{2,3}.0 rPx,
|
||||
@{bin}/gtk{,4}-update-icon-cache rPx,
|
||||
@{bin}/head rix,
|
||||
@{bin}/install-catalog rPx,
|
||||
@{bin}/install-info rPx,
|
||||
|
|
@ -86,6 +87,7 @@ profile pacman @{exec_path} {
|
|||
@{bin}/ldconfig rix,
|
||||
@{bin}/ln rix,
|
||||
@{bin}/locale-gen rPx,
|
||||
@{bin}/mkdir rix,
|
||||
@{bin}/mkinitcpio rPx,
|
||||
@{bin}/needrestart rPx,
|
||||
@{bin}/pacdiff rPx,
|
||||
|
|
@ -93,14 +95,13 @@ profile pacman @{exec_path} {
|
|||
@{bin}/perl rix,
|
||||
@{bin}/pkgfile rPUx,
|
||||
@{bin}/pkill rix,
|
||||
@{bin}/mkdir rix,
|
||||
@{bin}/setfacl rix,
|
||||
@{bin}/pwd rix,
|
||||
@{bin}/rm rix,
|
||||
@{bin}/rsync rix,
|
||||
@{bin}/sbctl rPx,
|
||||
@{bin}/sed rix,
|
||||
@{bin}/setcap rix,
|
||||
@{bin}/setfacl rix,
|
||||
@{bin}/sync rix,
|
||||
@{bin}/sysctl rPx,
|
||||
@{bin}/systemctl rPx -> child-systemctl,
|
||||
|
|
|
|||
|
|
@ -7,8 +7,9 @@ abi <abi/3.0>,
|
|||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /usr/share/libalpm/scripts/dkms
|
||||
profile pacman-hook-dkms @{exec_path} {
|
||||
profile pacman-hook-dkms @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
capability dac_read_search,
|
||||
capability mknod,
|
||||
|
|
|
|||
28
apparmor.d/groups/pacman/pacman-hook-gtk4-querymodules
Normal file
28
apparmor.d/groups/pacman/pacman-hook-gtk4-querymodules
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /usr/share/libalpm/scripts/gtk4-querymodules
|
||||
profile pacman-hook-gtk4-querymodules @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
capability dac_read_search,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{bin}/{,ba,da}sh r,
|
||||
@{bin}/rmdir rix,
|
||||
@{bin}/gio-querymodules rPx,
|
||||
|
||||
@{lib}/gtk-4.0/*/*/ w,
|
||||
|
||||
# Inherit Silencer
|
||||
deny network inet6 stream,
|
||||
deny network inet stream,
|
||||
|
||||
include if exists <local/pacman-hook-gtk4-querymodules>
|
||||
}
|
||||
|
|
@ -14,8 +14,6 @@ profile pacman-hook-mkinitcpio @{exec_path} flags=(attach_disconnected) {
|
|||
capability dac_read_search,
|
||||
capability mknod,
|
||||
|
||||
audit deny unix (receive) type=stream,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{bin}/bash rix,
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ profile pacman-key @{exec_path} {
|
|||
/usr/share/pacman/keyrings/{,*} r,
|
||||
/usr/share/terminfo/** r,
|
||||
|
||||
/etc/pacman.d/gnupg/gpg.conf r,
|
||||
|
||||
/etc/pacman.d/gnupg/* rw,
|
||||
|
||||
/dev/tty rw,
|
||||
|
||||
profile gpg {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue