Update profiles.

This commit is contained in:
Alexandre Pujol 2021-06-12 15:21:16 +01:00
parent 4ee6cc9657
commit 6bbe50573b
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
5 changed files with 14 additions and 3 deletions

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/paccache @{exec_path} = /{usr/,}bin/paccache
profile paccache @{exec_path} { profile paccache @{exec_path} {
include <abstractions/base> include <abstractions/base>
include <abstractions/nameservice-strict>
capability dac_read_search, capability dac_read_search,
capability mknod, capability mknod,

View file

@ -12,11 +12,12 @@ profile systemd-tmpfiles @{exec_path} {
include <abstractions/systemd-common> include <abstractions/systemd-common>
include <abstractions/nameservice-strict> include <abstractions/nameservice-strict>
capability chown,
capability dac_read_search, capability dac_read_search,
capability net_admin, capability fowner,
capability fsetid, capability fsetid,
capability mknod, capability mknod,
capability fowner, capability net_admin,
@{exec_path} mr, @{exec_path} mr,

View file

@ -33,6 +33,7 @@ profile browserpass @{exec_path} {
deny network inet stream, deny network inet stream,
deny owner @{user_share_dirs}/gvfs-metadata/{,**} r, deny owner @{user_share_dirs}/gvfs-metadata/{,**} r,
deny owner @{HOME}/@{XDG_DOWNLOAD_DIR}/{,**} r, deny owner @{HOME}/@{XDG_DOWNLOAD_DIR}/{,**} r,
deny /dev/dri/card[0-9]* rw,
include if exists <local/browserpass> include if exists <local/browserpass>
} }

View file

@ -14,5 +14,9 @@ profile update-mime-database @{exec_path} {
/usr/share/mime/{,**} rw, /usr/share/mime/{,**} rw,
# Silencer
deny network inet6 stream,
deny network inet stream,
include if exists <local/update-mime-database> include if exists <local/update-mime-database>
} }

View file

@ -15,5 +15,9 @@ profile vlc-cache-gen @{exec_path} {
/{usr/,}lib/vlc/plugins/{,*} rw, /{usr/,}lib/vlc/plugins/{,*} rw,
# Silencer
deny network inet6 stream,
deny network inet stream,
include if exists <local/vlc-cache-gen> include if exists <local/vlc-cache-gen>
} }