feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-03-07 17:57:57 +00:00
parent 3ff8e3847d
commit 558cb68f23
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
27 changed files with 155 additions and 150 deletions

View file

@ -28,5 +28,7 @@ profile aa-log @{exec_path} {
@{PROC}/sys/kernel/random/boot_id r,
@{PROC}/sys/kernel/cap_last_cap r,
/dev/tty[0-9]* rw,
include if exists <local/aa-log>
}

View file

@ -21,5 +21,7 @@ profile dumpe2fs @{exec_path} {
owner @{run}/blkid/blkid.tab{,-*} rw,
owner @{run}/blkid/blkid.tab.old rwl -> @{run}/blkid/blkid.tab,
/dev/tty[0-9]* rw,
include if exists <local/dumpe2fs>
}

View file

@ -28,6 +28,7 @@ profile e2fsck @{exec_path} {
owner @{user_img_dirs}/{,**} rwk,
@{run}/blkid/ rw,
@{run}/systemd/fsck.progress rw,
owner @{run}/blkid/blkid.tab.old rwl -> @{run}/blkid/blkid.tab,
owner @{run}/blkid/blkid.tab{,-*} rw,

View file

@ -10,8 +10,14 @@ include <tunables/global>
profile fail2ban-server @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/openssl>
include <abstractions/python>
capability dac_read_search,
capability net_admin,
network netlink raw,
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
@ -27,8 +33,8 @@ profile fail2ban-server @{exec_path} flags=(attach_disconnected) {
/var/log/auth.log r,
/var/log/fail2ban.log w,
@{run}/fail2ban/fail2ban.pid w,
@{run}/fail2ban/fail2ban.sock w,
@{run}/fail2ban/fail2ban.pid rw,
@{run}/fail2ban/fail2ban.sock rw,
@{run}/resolvconf/resolv.conf r,
owner @{PROC}/@{pid}/fd/ r,