feat: update profiles.

This commit is contained in:
Alexandre Pujol 2022-04-26 22:05:29 +01:00
parent 84dc85b82d
commit e845a172c2
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
28 changed files with 84 additions and 96 deletions

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/etckeeper
profile etckeeper @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
capability dac_read_search,
@ -20,20 +21,23 @@ profile etckeeper @{exec_path} {
/{usr/,}bin/{,e}grep rix,
/{usr/,}bin/chmod rix,
/{usr/,}bin/cut rix,
/{usr/,}bin/dpkg-query rpx,
/{usr/,}bin/find rix,
/{usr/,}bin/getent rix,
/{usr/,}bin/git* rix,
/{usr/,}lib/git-core/git* rix,
/{usr/,}bin/gpg rCx -> gpg,
/{usr/,}bin/hostname rix,
/{usr/,}bin/mkdir rix,
/{usr/,}bin/mktemp rix,
/{usr/,}bin/perl rix,
/{usr/,}bin/ps rPx,
/{usr/,}bin/rm rix,
/{usr/,}bin/sed rix,
/{usr/,}bin/sort rix,
/{usr/,}bin/tty rix,
/{usr/,}bin/uniq rix,
/{usr/,}bin/whoami rix,
/{usr/,}lib/git-core/git* rix,
/etc/.git/hooks/* rix,
/etc/etckeeper/*.d/* rix,
@ -42,6 +46,8 @@ profile etckeeper @{exec_path} {
/etc/ rw,
/etc/** rwkl -> /etc/**,
/var/cache/etckeeper/{,**} rw,
owner @{HOME}/.gitconfig* r,
owner @{HOME}/.netrc r,
owner @{user_config_dirs}/git/{,*} rw,
@ -61,11 +67,7 @@ profile etckeeper @{exec_path} {
owner @{HOME}/@{XDG_GPG_DIR}/** rwkl -> @{HOME}/@{XDG_GPG_DIR}/**,
owner @{PROC}/@{pid}/fd/ r,
owner @{user_config_dirs}/dotfiles/@{XDG_GPG_DIR}/** rwkl, # to remove, to depracate
# owner /tmp/.git_vtag_tmp* r,
# deny @{user_share_dirs}/gvfs-metadata/* r,
}
include if exists <local/etckeeper>