fix(profile): integration tests.

This commit is contained in:
Alexandre Pujol 2025-03-30 21:07:47 +02:00
parent 86759f2ef1
commit 41ff05369d
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 4 additions and 6 deletions

View file

@ -10,19 +10,16 @@ include <tunables/global>
@{exec_path} = @{bin}/chfn
profile chfn @{exec_path} {
include <abstractions/base>
include <abstractions/authentication>
include <abstractions/bus-system>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/authentication>
include <abstractions/wutmp>
# To write records to the kernel auditing log.
capability audit_write,
# To set the right permission to the files in the /etc/ dir.
capability chown,
capability fsetid,
# chfn is a SETUID binary
capability net_admin,
capability setuid,
network netlink raw,

View file

@ -28,6 +28,7 @@ profile landscape-sysinfo @{exec_path} {
@{bin}/who rix,
@{lib}/@{python_name}/dist-packages/landscape/{,**/}__pycache__/ w,
@{lib}/@{python_name}/dist-packages/landscape/{,**/}__pycache__/**.pyc w,
@{lib}/@{python_name}/dist-packages/landscape/{,**/}__pycache__/**.pyc.@{u64} w,
/var/log/landscape/{,**} rw,