[selinux-policy: 1082/3172] add roundup.

Daniel J Walsh dwalsh at fedoraproject.org
Thu Oct 7 20:38:22 UTC 2010


commit 7e0fa55f06a210c3ff6e09ae70dbfc30bfffc2b0
Author: Chris PeBenito <cpebenito at tresys.com>
Date:   Wed Jan 11 20:03:21 2006 +0000

    add roundup.

 refpolicy/Changelog                          |    1 +
 refpolicy/policy/modules/services/roundup.fc |    9 ++
 refpolicy/policy/modules/services/roundup.if |    1 +
 refpolicy/policy/modules/services/roundup.te |  112 ++++++++++++++++++++++++++
 4 files changed, 123 insertions(+), 0 deletions(-)
---
diff --git a/refpolicy/Changelog b/refpolicy/Changelog
index fc0c904..a8d14de 100644
--- a/refpolicy/Changelog
+++ b/refpolicy/Changelog
@@ -12,6 +12,7 @@
 	logwatch (Dan Walsh)
 	openct
 	readahead
+	roundup
 	screen
 	slrnpull
 	smartmon
diff --git a/refpolicy/policy/modules/services/roundup.fc b/refpolicy/policy/modules/services/roundup.fc
new file mode 100644
index 0000000..0b5ac58
--- /dev/null
+++ b/refpolicy/policy/modules/services/roundup.fc
@@ -0,0 +1,9 @@
+#
+# /usr
+#
+/usr/bin/roundup-server         --      gen_context(system_u:object_r:roundup_exec_t,s0)
+
+#
+# /var
+#
+/var/lib/roundup(/.*)?          --      gen_context(system_u:object_r:roundup_var_lib_t,s0)
diff --git a/refpolicy/policy/modules/services/roundup.if b/refpolicy/policy/modules/services/roundup.if
new file mode 100644
index 0000000..f93997c
--- /dev/null
+++ b/refpolicy/policy/modules/services/roundup.if
@@ -0,0 +1 @@
+## <summary>Roundup Issue Tracking System policy</summary>
diff --git a/refpolicy/policy/modules/services/roundup.te b/refpolicy/policy/modules/services/roundup.te
new file mode 100644
index 0000000..ce126ea
--- /dev/null
+++ b/refpolicy/policy/modules/services/roundup.te
@@ -0,0 +1,112 @@
+
+policy_module(roundup,1.0.0)
+
+########################################
+#
+# Declarations
+#
+
+type roundup_t;
+type roundup_exec_t;
+init_daemon_domain(roundup_t,roundup_exec_t)
+
+type roundup_var_run_t;
+files_pid_file(roundup_var_run_t)
+
+type roundup_var_lib_t;
+files_type(roundup_var_lib_t)
+
+########################################
+#
+# Local policy
+#
+
+allow roundup_t self:capability { setgid setuid };
+dontaudit roundup_t self:capability sys_tty_config;
+allow roundup_t self:process signal_perms;
+allow roundup_t self:unix_stream_socket create_stream_socket_perms;
+allow roundup_t self:tcp_socket create_stream_socket_perms;
+allow roundup_t self:udp_socket create_socket_perms;
+
+allow roundup_t roundup_var_run_t:file create_file_perms;
+allow roundup_t roundup_var_run_t:dir rw_dir_perms;
+files_create_pid(roundup_t,roundup_var_run_t)
+
+allow roundup_t roundup_var_lib_t:file create_file_perms;
+allow roundup_t roundup_var_lib_t:dir rw_dir_perms;
+files_create_var_lib(roundup_t,roundup_var_lib_t)
+
+kernel_read_kernel_sysctl(roundup_t)
+kernel_list_proc(roundup_t)
+kernel_read_proc_symlinks(roundup_t)
+
+dev_read_sysfs(roundup_t)
+
+# execute python
+corecmd_exec_bin(roundup_t)
+
+corenet_non_ipsec_sendrecv(roundup_t)
+corenet_tcp_sendrecv_generic_if(roundup_t)
+corenet_udp_sendrecv_generic_if(roundup_t)
+corenet_raw_sendrecv_generic_if(roundup_t)
+corenet_tcp_sendrecv_all_nodes(roundup_t)
+corenet_udp_sendrecv_all_nodes(roundup_t)
+corenet_raw_sendrecv_all_nodes(roundup_t)
+corenet_tcp_sendrecv_all_ports(roundup_t)
+corenet_udp_sendrecv_all_ports(roundup_t)
+corenet_tcp_bind_all_nodes(roundup_t)
+corenet_udp_bind_all_nodes(roundup_t)
+corenet_tcp_bind_http_cache_port(roundup_t)
+corenet_tcp_connect_smtp_port(roundup_t)
+
+# /usr/share/mysql/charsets/Index.xml
+dev_read_urand(roundup_t)
+
+domain_use_wide_inherit_fd(roundup_t)
+
+# /usr/share/mysql/charsets/Index.xml
+files_read_usr_files(roundup_t)
+files_read_etc_files(roundup_t)
+
+fs_getattr_all_fs(roundup_t)
+fs_search_auto_mountpoints(roundup_t)
+
+term_dontaudit_use_console(roundup_t)
+
+init_use_fd(roundup_t)
+init_use_script_pty(roundup_t)
+
+libs_use_ld_so(roundup_t)
+libs_use_shared_libs(roundup_t)
+
+logging_send_syslog_msg(roundup_t)
+
+miscfiles_read_localization(roundup_t)
+
+sysnet_read_config(roundup_t)
+
+userdom_dontaudit_use_unpriv_user_fd(roundup_t)
+userdom_dontaudit_search_sysadm_home_dir(roundup_t)
+
+ifdef(`targeted_policy',`
+	files_dontaudit_read_root_file(roundup_t)
+	term_dontaudit_use_unallocated_tty(roundup_t)
+	term_dontaudit_use_generic_pty(roundup_t)
+')
+
+optional_policy(`mount',`
+	mount_send_nfs_client_request(roundup_t)
+')
+
+optional_policy(`mysql',`
+	mysql_stream_connect(roundup_t)
+	mysql_search_db_dir(roundup_t)
+')
+
+optional_policy(`selinuxutil',`
+	seutil_sigchld_newrole(roundup_t)
+')
+
+optional_policy(`udev',`
+	udev_read_db(roundup_t)
+')


More information about the scm-commits mailing list