Skip to contentSkip to conversation

udev: This is specific to debian i think. Some how the /usr/lib/avahi/avahi-daemon-check-dns\.sh ends up in the udev_t domain

PATCH New Dominick Grift 2 participants 2 messages Sep 24, 2013 – Sep 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 19/20 udev: This is specific to debian i think. Some how the /usr/lib/avahi/avahi-daemon-check-dns\.sh ends up in the udev_t domain

The script basically does what the name suggests, and additionally it need to be able to stop and start avahi-daemon via its init script

---
 policy/modules/system/udev.te | 10 ++++++++++
 1 file changed, 10 insertions(+)
policy/modules/system/udev.te +10 -0
index d8b9856..6a5e1e2 100644
@@ -177,6 +177,16 @@ sysnet_etc_filetrans_config(udev_t)
 
 userdom_dontaudit_search_user_home_content(udev_t)
 
+ifdef(`distro_debian',`
+	optional_policy(`
+		kernel_read_vm_sysctls(udev_t)
+		corenet_udp_bind_generic_node(udev_t)
+		miscfiles_read_generic_certs(udev_t)
+		avahi_initrc_domtrans(udev_t)
+		avahi_manage_pid_files(udev_t)
+	')
+')
+
 ifdef(`distro_gentoo',`
 	# during boot, init scripts use /dev/.rcsysinit
 	# existance to determine if we are in early booting
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 19/20 udev: This is specific to debian i think. Some how the /usr/lib/avahi/avahi-daemon-check-dns\.sh ends up in the udev_t domain

Quoted 19 lines · Dominick Grift

The script basically does what the name suggests, and additionally it need to be able to stop and start avahi-daemon via its init script

---
 policy/modules/system/udev.te | 10 ++++++++++
 1 file changed, 10 insertions(+)
policy/modules/system/udev.te +3 -0
index d8b9856..6a5e1e2 100644
@@ -177,6 +177,16 @@ sysnet_etc_filetrans_config(udev_t)
 
 userdom_dontaudit_search_user_home_content(udev_t)
 
+ifdef(`distro_debian',`
+	optional_policy(`
+		kernel_read_vm_sysctls(udev_t)

policy/modules/system/udev.te sysnet_etc_filetrans_config(udev_t) · line 192

Quoted 10 lines
policy/modules/system/udev.te +7 -0
+		corenet_udp_bind_generic_node(udev_t)
+		miscfiles_read_generic_certs(udev_t)
+		avahi_initrc_domtrans(udev_t)
+		avahi_manage_pid_files(udev_t)
+	')
+')
+
 ifdef(`distro_gentoo',`
 	# during boot, init scripts use /dev/.rcsysinit
 	# existance to determine if we are in early booting

Merged.

--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com