Profiles update.

This commit is contained in:
Alexandre Pujol 2022-02-27 12:18:10 +00:00
parent 64e5f3ec2a
commit 84e2a56eb9
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
15 changed files with 37 additions and 28 deletions

View file

@ -10,6 +10,8 @@ include <tunables/global>
profile archlinux-java @{exec_path} {
include <abstractions/base>
capability dac_read_search,
@{exec_path} mr,
/{usr/,}bin/basename rix,
@ -19,5 +21,11 @@ profile archlinux-java @{exec_path} {
/{usr/,}bin/readlink rix,
/{usr/,}bin/unlink rix,
/dev/tty rw,
# Inherit Silencer
deny network inet6 stream,
deny network inet stream,
include if exists <local/archlinux-java>
}

View file

@ -139,6 +139,9 @@ profile pacman @{exec_path} {
owner /etc/pacman.d/gnupg/ rw,
owner /etc/pacman.d/gnupg/** rwkl,
deny network inet stream,
deny network inet6 stream,
}
include if exists <usr/pacman.d>

View file

@ -9,7 +9,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/pacman-key
profile pacman-key @{exec_path} {
include <abstractions/base>
capability dac_read_search,
capability mknod,
@ -29,7 +29,7 @@ profile pacman-key @{exec_path} {
/{usr/,}bin/wc rix,
/usr/share/makepkg/{,**} r,
/usr/share/pacman/keyrings/* r,
/usr/share/pacman/keyrings/{,*} r,
/usr/share/terminfo/x/xterm-256color r,
/dev/tty rw,
@ -47,11 +47,13 @@ profile pacman-key @{exec_path} {
/{usr/,}bin/gpg mr,
/{usr/,}bin/gpg-agent rix,
/usr/share/pacman/keyrings/* r,
/usr/share/pacman/keyrings/{,*} r,
/etc/pacman.d/gnupg/ rw,
/etc/pacman.d/gnupg/** rwkl,
@{HOME}/.gnupg/gpg.conf r,
owner @{PROC}/@{pid}/fd/ r,
# Inherit Silencer