Skip to content

Commit

Permalink
Dontaudit keepalived setattr on keepalived_unconfined_script_exec_t
Browse files Browse the repository at this point in the history
Keepalived can be configured to execute periodically a VRRP script.
Keepalived does sanity checks on such a script through calling the
check_script_secure() function, which internally relies on libmagic
magic_file() function which internally opens/reads the file, then
closes it and tries restore its access time.

Resolves: RHEL-14029
  • Loading branch information
zpytela committed Oct 20, 2023
1 parent e39ef8a commit 3d50df9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions policy/modules/contrib/keepalived.te
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ optional_policy(`
allow keepalived_t keepalived_unconfined_script_exec_t:dir search_dir_perms;
allow keepalived_t keepalived_unconfined_script_exec_t:dir read_file_perms;
allow keepalived_t keepalived_unconfined_script_exec_t:file ioctl;
dontaudit keepalived_t keepalived_unconfined_script_exec_t:file setattr;


init_dbus_chat(keepalived_unconfined_script_t)

Expand Down

0 comments on commit 3d50df9

Please sign in to comment.