[selinux-policy: 585/3172] add howl

Daniel J Walsh dwalsh at fedoraproject.org
Thu Oct 7 19:55:11 UTC 2010


commit f9b11e9615e0278c9fe6d634ee2754f42be63502
Author: Chris PeBenito <cpebenito at tresys.com>
Date:   Mon Aug 22 20:43:20 2005 +0000

    add howl

 refpolicy/Changelog                       |    1 +
 refpolicy/policy/modules/services/howl.fc |    5 ++
 refpolicy/policy/modules/services/howl.if |    1 +
 refpolicy/policy/modules/services/howl.te |   92 +++++++++++++++++++++++++++++
 4 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/refpolicy/Changelog b/refpolicy/Changelog
index 751bfb8..d4dd90f 100644
--- a/refpolicy/Changelog
+++ b/refpolicy/Changelog
@@ -15,6 +15,7 @@
 		acct
 		firstboot
 		gpm
+		howl
 		ldap
 		loadkeys
 		mysql
diff --git a/refpolicy/policy/modules/services/howl.fc b/refpolicy/policy/modules/services/howl.fc
new file mode 100644
index 0000000..0750e74
--- /dev/null
+++ b/refpolicy/policy/modules/services/howl.fc
@@ -0,0 +1,5 @@
+
+/usr/bin/mDNSResponder	--	context_template(system_u:object_r:howl_exec_t,s0)
+/usr/bin/nifd		--	context_template(system_u:object_r:howl_exec_t,s0)
+
+/var/run/nifd\.pid	--	context_template(system_u:object_r:howl_var_run_t,s0)
diff --git a/refpolicy/policy/modules/services/howl.if b/refpolicy/policy/modules/services/howl.if
new file mode 100644
index 0000000..7091f8b
--- /dev/null
+++ b/refpolicy/policy/modules/services/howl.if
@@ -0,0 +1 @@
+## <summary>Port of Apple Rendezvous multicast DNS</summary>
diff --git a/refpolicy/policy/modules/services/howl.te b/refpolicy/policy/modules/services/howl.te
new file mode 100644
index 0000000..8e6ed7d
--- /dev/null
+++ b/refpolicy/policy/modules/services/howl.te
@@ -0,0 +1,92 @@
+
+policy_module(howl,1.0)
+
+########################################
+#
+# Declarations
+#
+
+type howl_t;
+type howl_exec_t;
+init_daemon_domain(howl_t,howl_exec_t)
+
+type howl_var_run_t;
+files_pid_file(howl_var_run_t)
+
+########################################
+#
+# Local policy
+#
+
+allow howl_t self:capability { kill net_admin };
+dontaudit howl_t self:capability sys_tty_config;
+allow howl_t self:fifo_file rw_file_perms;
+allow howl_t self:tcp_socket create_stream_socket_perms;
+
+allow howl_t howl_var_run_t:file create_file_perms;
+files_create_pid(howl_t,howl_var_run_t)
+
+kernel_read_network_state(howl_t)
+kernel_read_kernel_sysctl(howl_t)
+kernel_load_module(howl_t)
+kernel_list_proc(howl_t)
+kernel_read_proc_symlinks(howl_t)
+
+corenet_tcp_sendrecv_all_if(howl_t)
+corenet_raw_sendrecv_all_if(howl_t)
+corenet_tcp_sendrecv_all_nodes(howl_t)
+corenet_raw_sendrecv_all_nodes(howl_t)
+corenet_tcp_sendrecv_all_ports(howl_t)
+corenet_tcp_bind_all_nodes(howl_t)
+corenet_tcp_bind_howl_port(howl_t)
+# cjp: why udp bind if it has no other UDP perms?
+corenet_udp_bind_howl_port(howl_t)
+
+dev_read_sysfs(howl_t)
+
+fs_getattr_all_fs(howl_t)
+fs_search_auto_mountpoints(howl_t)
+
+term_dontaudit_use_console(howl_t)
+
+domain_use_wide_inherit_fd(howl_t)
+
+files_read_etc_files(howl_t)
+
+init_use_fd(howl_t)
+init_use_script_pty(howl_t)
+init_rw_script_pid(howl_t)
+
+libs_use_ld_so(howl_t)
+libs_use_shared_libs(howl_t)
+
+logging_send_syslog_msg(howl_t)
+
+miscfiles_read_localization(howl_t)
+
+sysnet_read_config(howl_t)
+
+userdom_dontaudit_use_unpriv_user_fd(howl_t)
+userdom_dontaudit_search_sysadm_home_dir(howl_t)
+
+ifdef(`targeted_policy', `
+	term_dontaudit_use_unallocated_tty(howl_t)
+	term_dontaudit_use_generic_pty(howl_t)
+	files_dontaudit_read_root_file(howl_t)
+')
+
+optional_policy(`nis.te',`
+	nis_use_ypbind(howl_t)
+')
+
+optional_policy(`rhgb.te',`
+	rhgb_domain(howl_t)
+')
+
+optional_policy(`selinuxutil.te',`
+	seutil_sigchld_newrole(howl_t)
+')
+
+optional_policy(`udev.te', `
+	udev_read_db(howl_t)
+')


More information about the scm-commits mailing list