Skip to contentSkip to conversation

dontaudit using firstboot fifo_file

PATCH Daniel J Walsh 1 participant 1 message Mar 23, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

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(`