feat(profile): ubuntu: improve integration with ubuntu.

This commit is contained in:
Alexandre Pujol 2024-09-26 20:34:12 +01:00
parent 3f13aa77bf
commit 549c6ba2f5
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
18 changed files with 44 additions and 62 deletions

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = @{bin}/gtk-query-immodules-{2,3}.0
profile gtk-query-immodules @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
capability dac_override,
capability dac_read_search,

View file

@ -50,19 +50,7 @@ profile logrotate @{exec_path} flags=(attach_disconnected) {
@{bin}/squid rPUx,
@{bin}/pgrep rCx -> pgrep,
# no new privs
#@{bin}/systemctl rCx -> systemctl,
@{bin}/systemctl rix,
@{bin}/runlevel rix,
include <abstractions/wutmp>
ptrace (read),
capability sys_ptrace,
owner @{PROC}/@{pid}/stat r,
@{PROC}/1/environ r,
@{PROC}/1/sched r,
@{PROC}/cmdline r,
@{PROC}/sys/kernel/osrelease r,
@{bin}/systemctl rCx -> systemctl,
/etc/ r,
@{etc_ro}/logrotate.conf rk,
@ -92,6 +80,8 @@ profile logrotate @{exec_path} flags=(attach_disconnected) {
capability net_admin,
capability sys_ptrace,
@{run}/utmp rk,
include if exists <local/logrotate_systemctl>
}