dontaudit using firstboot fifo_file
firstboot starts certain daemons (ntp) which attempt to access its fifo_file
policy/modules/admin/firstboot.if +18 -0
@@ -124,3 +124,21 @@ allow $1 firstboot_t:fifo_file { read write }; ') + +######################################## +## <summary> +## dontaudit Read and Write to a firstboot unnamed pipe. +## </summary> +## <param name="domain"> +## <summary> +## The type of the process performing this action. +## </summary> +## </param> +# +interface(`firstboot_dontaudit_rw_pipes',` + gen_require(` + type firstboot_t; + ') + + dontaudit $1 firstboot_t:fifo_file { read write }; +')
policy/modules/services/ntp.te +1 -0
@@ -131,6 +131,7 @@ optional_policy(` firstboot_dontaudit_use_fds(ntpd_t) + firstboot_dontaudit_rw_pipes(ntpd_t) ') optional_policy(`