Changeset 2834
- Timestamp:
- 10/13/08 10:06:23
(2 months ago)
- Author:
- cpebenito
- Message:
trunk: 8 patches from dan.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2742 |
r2834 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(alsa, 1.5.0) |
|---|
| | 2 | policy_module(alsa, 1.5.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 49 | 49 | files_search_home(alsa_t) |
|---|
| 50 | 50 | files_read_etc_files(alsa_t) |
|---|
| | 51 | files_read_usr_files(alsa_t) |
|---|
| 51 | 52 | |
|---|
| 52 | 53 | auth_use_nsswitch(alsa_t) |
|---|
| | 54 | |
|---|
| | 55 | init_use_fds(alsa_t) |
|---|
| 53 | 56 | |
|---|
| 54 | 57 | libs_use_ld_so(alsa_t) |
|---|
| r2779 |
r2834 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(amanda, 1.9.2) |
|---|
| | 2 | policy_module(amanda, 1.9.3) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ####################################### |
|---|
| … | … | |
| 130 | 130 | corenet_udp_bind_all_nodes(amanda_t) |
|---|
| 131 | 131 | corenet_tcp_bind_all_rpc_ports(amanda_t) |
|---|
| | 132 | corenet_tcp_bind_generic_port(amanda_t) |
|---|
| | 133 | corenet_dontaudit_tcp_bind_all_ports(amanda_t) |
|---|
| 132 | 134 | |
|---|
| 133 | 135 | dev_getattr_all_blk_files(amanda_t) |
|---|
| r2763 |
r2834 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(mrtg, 1.4.0) |
|---|
| | 2 | policy_module(mrtg, 1.4.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 79 | 79 | |
|---|
| 80 | 80 | domain_use_interactive_fds(mrtg_t) |
|---|
| | 81 | domain_dontaudit_search_all_domains_state(mrtg_t) |
|---|
| 81 | 82 | |
|---|
| 82 | 83 | files_read_usr_files(mrtg_t) |
|---|
| … | … | |
| 93 | 94 | fs_search_auto_mountpoints(mrtg_t) |
|---|
| 94 | 95 | fs_getattr_xattr_fs(mrtg_t) |
|---|
| | 96 | fs_list_inotifyfs(mrtg_t) |
|---|
| 95 | 97 | |
|---|
| 96 | 98 | term_dontaudit_use_console(mrtg_t) |
|---|
| … | … | |
| 101 | 103 | init_read_utmp(mrtg_t) |
|---|
| 102 | 104 | init_dontaudit_write_utmp(mrtg_t) |
|---|
| | 105 | |
|---|
| | 106 | auth_use_nsswitch(mrtg_t) |
|---|
| 103 | 107 | |
|---|
| 104 | 108 | libs_read_lib_files(mrtg_t) |
|---|
| … | … | |
| 112 | 116 | selinux_dontaudit_getattr_dir(mrtg_t) |
|---|
| 113 | 117 | |
|---|
| 114 | | # Use the network. |
|---|
| 115 | | sysnet_read_config(mrtg_t) |
|---|
| 116 | | |
|---|
| 117 | 118 | userdom_dontaudit_use_unpriv_user_fds(mrtg_t) |
|---|
| 118 | 119 | |
|---|
| 119 | 120 | sysadm_use_terms(mrtg_t) |
|---|
| | 121 | sysadm_dontaudit_read_home_content_files(mrtg_t) |
|---|
| 120 | 122 | |
|---|
| 121 | 123 | ifdef(`enable_mls',` |
|---|
| … | … | |
| 141 | 143 | |
|---|
| 142 | 144 | optional_policy(` |
|---|
| 143 | | nis_use_ypbind(mrtg_t) |
|---|
| 144 | | ') |
|---|
| 145 | | |
|---|
| 146 | | optional_policy(` |
|---|
| 147 | | nscd_dontaudit_search_pid(mrtg_t) |
|---|
| 148 | | ') |
|---|
| 149 | | |
|---|
| 150 | | optional_policy(` |
|---|
| 151 | 145 | seutil_sigchld_newrole(mrtg_t) |
|---|
| 152 | 146 | ') |
|---|
| … | … | |
| 163 | 157 | udev_read_db(mrtg_t) |
|---|
| 164 | 158 | ') |
|---|
| 165 | | |
|---|
| 166 | | ifdef(`TODO',` |
|---|
| 167 | | # should not need this! |
|---|
| 168 | | dontaudit mrtg_t { staff_home_dir_t sysadm_home_dir_t }:dir { search read getattr }; |
|---|
| 169 | | dontaudit mrtg_t { boot_t device_t file_t lost_found_t }:dir getattr; |
|---|
| 170 | | dontaudit mrtg_t root_t:lnk_file getattr; |
|---|
| 171 | | ') |
|---|
| r2772 |
r2834 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(netutils, 1.6.1) |
|---|
| | 2 | policy_module(netutils, 1.6.2) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 51 | 51 | |
|---|
| 52 | 52 | kernel_search_proc(netutils_t) |
|---|
| | 53 | kernel_read_sysctl(netutils_t) |
|---|
| 53 | 54 | |
|---|
| 54 | 55 | corenet_all_recvfrom_unlabeled(netutils_t) |
|---|
| … | … | |
| 79 | 80 | init_use_script_ptys(netutils_t) |
|---|
| 80 | 81 | |
|---|
| | 82 | auth_use_nsswitch(netutils_t) |
|---|
| | 83 | |
|---|
| 81 | 84 | libs_use_ld_so(netutils_t) |
|---|
| 82 | 85 | libs_use_shared_libs(netutils_t) |
|---|
| … | … | |
| 86 | 89 | miscfiles_read_localization(netutils_t) |
|---|
| 87 | 90 | |
|---|
| 88 | | sysnet_read_config(netutils_t) |
|---|
| 89 | | |
|---|
| 90 | 91 | userdom_use_all_users_fds(netutils_t) |
|---|
| 91 | 92 | |
|---|
| 92 | 93 | optional_policy(` |
|---|
| 93 | 94 | nis_use_ypbind(netutils_t) |
|---|
| | 95 | ') |
|---|
| | 96 | |
|---|
| | 97 | optional_policy(` |
|---|
| | 98 | vmware_append_log(netutils_t) |
|---|
| 94 | 99 | ') |
|---|
| 95 | 100 | |
|---|
| … | … | |
| 108 | 113 | allow ping_t self:rawip_socket { create ioctl read write bind getopt setopt }; |
|---|
| 109 | 114 | allow ping_t self:packet_socket { create ioctl read write bind getopt setopt }; |
|---|
| | 115 | allow ping_t self:netlink_route_socket create_netlink_socket_perms; |
|---|
| 110 | 116 | |
|---|
| 111 | 117 | corenet_all_recvfrom_unlabeled(ping_t) |
|---|
| … | … | |
| 114 | 120 | corenet_raw_sendrecv_all_if(ping_t) |
|---|
| 115 | 121 | corenet_raw_sendrecv_all_nodes(ping_t) |
|---|
| | 122 | corenet_raw_bind_all_nodes(ping_t) |
|---|
| 116 | 123 | corenet_tcp_sendrecv_all_nodes(ping_t) |
|---|
| 117 | 124 | corenet_tcp_sendrecv_all_ports(ping_t) |
|---|
| … | … | |
| 124 | 131 | files_dontaudit_search_var(ping_t) |
|---|
| 125 | 132 | |
|---|
| | 133 | auth_use_nsswitch(ping_t) |
|---|
| | 134 | |
|---|
| 126 | 135 | libs_use_ld_so(ping_t) |
|---|
| 127 | 136 | libs_use_shared_libs(ping_t) |
|---|
| … | … | |
| 130 | 139 | |
|---|
| 131 | 140 | miscfiles_read_localization(ping_t) |
|---|
| 132 | | |
|---|
| 133 | | sysnet_read_config(ping_t) |
|---|
| 134 | | sysnet_dns_name_resolve(ping_t) |
|---|
| 135 | 141 | |
|---|
| 136 | 142 | ifdef(`hide_broken_symptoms',` |
|---|
| … | … | |
| 144 | 150 | |
|---|
| 145 | 151 | optional_policy(` |
|---|
| 146 | | nis_use_ypbind(ping_t) |
|---|
| 147 | | ') |
|---|
| 148 | | |
|---|
| 149 | | optional_policy(` |
|---|
| 150 | | nscd_socket_use(ping_t) |
|---|
| 151 | | ') |
|---|
| 152 | | |
|---|
| 153 | | optional_policy(` |
|---|
| 154 | 152 | pcmcia_use_cardmgr_fds(ping_t) |
|---|
| 155 | 153 | ') |
|---|
| … | … | |
| 167 | 165 | allow traceroute_t self:rawip_socket create_socket_perms; |
|---|
| 168 | 166 | allow traceroute_t self:packet_socket create_socket_perms; |
|---|
| 169 | | allow traceroute_t self:netlink_route_socket { bind create getattr nlmsg_read read write }; |
|---|
| 170 | 167 | allow traceroute_t self:udp_socket create_socket_perms; |
|---|
| 171 | 168 | |
|---|
| … | … | |
| 201 | 198 | init_use_fds(traceroute_t) |
|---|
| 202 | 199 | |
|---|
| | 200 | auth_use_nsswitch(traceroute_t) |
|---|
| | 201 | |
|---|
| 203 | 202 | libs_use_ld_so(traceroute_t) |
|---|
| 204 | 203 | libs_use_shared_libs(traceroute_t) |
|---|
| … | … | |
| 213 | 212 | files_read_usr_files(traceroute_t) |
|---|
| 214 | 213 | |
|---|
| 215 | | sysnet_read_config(traceroute_t) |
|---|
| 216 | | |
|---|
| 217 | 214 | tunable_policy(`user_ping',` |
|---|
| 218 | 215 | term_use_all_user_ttys(traceroute_t) |
|---|
| 219 | 216 | term_use_all_user_ptys(traceroute_t) |
|---|
| 220 | 217 | ') |
|---|
| 221 | | |
|---|
| 222 | | optional_policy(` |
|---|
| 223 | | nis_use_ypbind(traceroute_t) |
|---|
| 224 | | ') |
|---|
| 225 | | |
|---|
| 226 | | optional_policy(` |
|---|
| 227 | | nscd_socket_use(traceroute_t) |
|---|
| 228 | | ') |
|---|
| r2611 |
r2834 |
|
| 7 | 7 | # /usr |
|---|
| 8 | 8 | # |
|---|
| | 9 | /usr/bin/openconnect -- gen_context(system_u:object_r:vpnc_exec_t,s0) |
|---|
| | 10 | |
|---|
| 9 | 11 | /usr/sbin/vpnc -- gen_context(system_u:object_r:vpnc_exec_t,s0) |
|---|
| 10 | 12 | |
|---|
| r2826 |
r2834 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(vpn, 1.8.1) |
|---|
| | 2 | policy_module(vpn, 1.8.2) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 24 | 24 | |
|---|
| 25 | 25 | allow vpnc_t self:capability { dac_read_search dac_override net_admin ipc_lock net_raw }; |
|---|
| 26 | | allow vpnc_t self:process getsched; |
|---|
| | 26 | allow vpnc_t self:process { getsched signal }; |
|---|
| 27 | 27 | allow vpnc_t self:fifo_file rw_fifo_file_perms; |
|---|
| 28 | 28 | allow vpnc_t self:netlink_route_socket rw_netlink_socket_perms; |
|---|
| … | … | |
| 45 | 45 | kernel_read_system_state(vpnc_t) |
|---|
| 46 | 46 | kernel_read_network_state(vpnc_t) |
|---|
| 47 | | kernel_read_kernel_sysctls(vpnc_t) |
|---|
| | 47 | kernel_read_all_sysctls(vpnc_t) |
|---|
| 48 | 48 | kernel_rw_net_sysctls(vpnc_t) |
|---|
| 49 | 49 | |
|---|
| r1244 |
r2834 |
|
| 6 | 6 | /var/cvs(/.*)? gen_context(system_u:object_r:cvs_data_t,s0) |
|---|
| 7 | 7 | |
|---|
| | 8 | #CVSWeb file context |
|---|
| | 9 | /usr/share/cvsweb/cvsweb\.cgi -- gen_context(system_u:object_r:httpd_cvs_script_exec_t,s0) |
|---|
| | 10 | /var/www/cgi-bin/cvsweb\.cgi -- gen_context(system_u:object_r:httpd_cvs_script_exec_t,s0) |
|---|
| r2818 |
r2834 |
|
| 70 | 70 | role_transition $2 cvs_initrc_exec_t system_r; |
|---|
| 71 | 71 | allow $2 system_r; |
|---|
| | 72 | |
|---|
| | 73 | files_list_tmp($1) |
|---|
| | 74 | admin_pattern($1, cvs_tmp_t) |
|---|
| | 75 | |
|---|
| | 76 | admin_pattern($1, cvs_data_t) |
|---|
| | 77 | |
|---|
| | 78 | files_list_pids($1) |
|---|
| | 79 | admin_pattern($1, cvs_var_run_t) |
|---|
| 72 | 80 | ') |
|---|
| r2818 |
r2834 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(cvs, 1.6.1) |
|---|
| | 2 | policy_module(cvs, 1.6.2) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 100 | 100 | |
|---|
| 101 | 101 | optional_policy(` |
|---|
| 102 | | kerberos_read_keytab(cvs_t) |
|---|
| | 102 | kerberos_keytab_template(cvs, cvs_t) |
|---|
| 103 | 103 | kerberos_read_config(cvs_t) |
|---|
| 104 | 104 | kerberos_dontaudit_write_config(cvs_t) |
|---|
| 105 | 105 | ') |
|---|
| | 106 | |
|---|
| | 107 | ######################################## |
|---|
| | 108 | # |
|---|
| | 109 | # CVSWeb policy |
|---|
| | 110 | # |
|---|
| | 111 | |
|---|
| | 112 | optional_policy(` |
|---|
| | 113 | apache_content_template(cvs) |
|---|
| | 114 | |
|---|
| | 115 | read_files_pattern(httpd_cvs_script_t, cvs_data_t, cvs_data_t) |
|---|
| | 116 | manage_dirs_pattern(httpd_cvs_script_t, cvs_tmp_t, cvs_tmp_t) |
|---|
| | 117 | manage_files_pattern(httpd_cvs_script_t, cvs_tmp_t, cvs_tmp_t) |
|---|
| | 118 | ') |
|---|
| r815 |
r2834 |
|
| | 1 | /etc/rc\.d/init\.d/cyrus -- gen_context(system_u:object_r:cyrus_initrc_exec_t,s0) |
|---|
| 1 | 2 | |
|---|
| 2 | 3 | /usr/lib(64)?/cyrus-imapd/cyrus-master -- gen_context(system_u:object_r:cyrus_exec_t,s0) |
|---|
| r2763 |
r2834 |
|
| 40 | 40 | stream_connect_pattern($1, cyrus_var_lib_t, cyrus_var_lib_t, cyrus_t) |
|---|
| 41 | 41 | ') |
|---|
| | 42 | |
|---|
| | 43 | ######################################## |
|---|
| | 44 | ## <summary> |
|---|
| | 45 | ## All of the rules required to administrate |
|---|
| | 46 | ## an cyrus environment |
|---|
| | 47 | ## </summary> |
|---|
| | 48 | ## <param name="domain"> |
|---|
| | 49 | ## <summary> |
|---|
| | 50 | ## Domain allowed access. |
|---|
| | 51 | ## </summary> |
|---|
| | 52 | ## </param> |
|---|
| | 53 | ## <param name="role"> |
|---|
| | 54 | ## <summary> |
|---|
| | 55 | ## The role to be allowed to manage the cyrus domain. |
|---|
| | 56 | ## </summary> |
|---|
| | 57 | ## </param> |
|---|
| | 58 | ## <rolecap/> |
|---|
| | 59 | # |
|---|
| | 60 | interface(`cyrus_admin',` |
|---|
| | 61 | gen_require(` |
|---|
| | 62 | type cyrus_t, cyrus_tmp_t, cyrus_var_lib_t; |
|---|
| | 63 | type cyrus_var_run_t, cyrus_initrc_exec_t; |
|---|
| | 64 | ') |
|---|
| | 65 | |
|---|
| | 66 | allow $1 cyrus_t:process { ptrace signal_perms }; |
|---|
| | 67 | ps_process_pattern($1, cyrus_t) |
|---|
| | 68 | |
|---|
| | 69 | init_labeled_script_domtrans($1, cyrus_initrc_exec_t) |
|---|
| | 70 | domain_system_change_exemption($1) |
|---|
| | 71 | role_transition $2 cyrus_initrc_exec_t system_r; |
|---|
| | 72 | allow $2 system_r; |
|---|
| | 73 | |
|---|
| | 74 | files_list_tmp($1) |
|---|
| | 75 | admin_pattern($1, cyrus_tmp_t) |
|---|
| | 76 | |
|---|
| | 77 | files_list_var_lib($1) |
|---|
| | 78 | admin_pattern($1, cyrus_var_lib_t) |
|---|
| | 79 | |
|---|
| | 80 | files_list_pids($1) |
|---|
| | 81 | admin_pattern($1, cyrus_var_run_t) |
|---|
| | 82 | ') |
|---|
| | 83 | |
|---|
| | 84 | |
|---|
| r2763 |
r2834 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(cyrus, 1.6.0) |
|---|
| | 2 | policy_module(cyrus, 1.6.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 10 | 10 | type cyrus_exec_t; |
|---|
| 11 | 11 | init_daemon_domain(cyrus_t, cyrus_exec_t) |
|---|
| | 12 | |
|---|
| | 13 | type cyrus_initrc_exec_t; |
|---|
| | 14 | init_script_file(cyrus_initrc_exec_t) |
|---|
| 12 | 15 | |
|---|
| 13 | 16 | type cyrus_tmp_t; |
|---|
| … | … | |
| 121 | 124 | |
|---|
| 122 | 125 | optional_policy(` |
|---|
| 123 | | kerberos_use(cyrus_t) |
|---|
| | 126 | kerberos_keytab_template(cyrus, cyrus_t) |
|---|
| 124 | 127 | ') |
|---|
| 125 | 128 | |
|---|
| r2698 |
r2834 |
|
| | 1 | /etc/rc\.d/init\.d/kerneloops -- gen_context(system_u:object_r:kerneloops_initrc_exec_t,s0) |
|---|
| | 2 | |
|---|
| 1 | 3 | /usr/sbin/kerneloops -- gen_context(system_u:object_r:kerneloops_exec_t,s0) |
|---|
| r2704 |
r2834 |
|
| 72 | 72 | ## </summary> |
|---|
| 73 | 73 | ## </param> |
|---|
| | 74 | ## <param name="role"> |
|---|
| | 75 | ## <summary> |
|---|
| | 76 | ## The role to be allowed to manage the kerneloops domain. |
|---|
| | 77 | ## </summary> |
|---|
| | 78 | ## </param> |
|---|
| 74 | 79 | ## <rolecap/> |
|---|
| 75 | 80 | # |
|---|
| 76 | 81 | interface(`kerneloops_admin',` |
|---|
| 77 | 82 | gen_require(` |
|---|
| 78 | | type kerneloops_t; |
|---|
| | 83 | type kerneloops_t, kerneloops_initrc_exec_t; |
|---|
| 79 | 84 | ') |
|---|
| 80 | 85 | |
|---|
| 81 | 86 | allow $1 kerneloops_t:process { ptrace signal_perms }; |
|---|
| 82 | 87 | ps_process_pattern($1, kerneloops_t) |
|---|
| | 88 | |
|---|
| | 89 | init_labeled_script_domtrans($1, kerneloops_initrc_exec_t) |
|---|
| | 90 | domain_system_change_exemption($1) |
|---|
| | 91 | role_transition $2 kerneloops_initrc_exec_t system_r; |
|---|
| | 92 | allow $2 system_r; |
|---|
| 83 | 93 | ') |
|---|
| r2699 |
r2834 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(kerneloops, 1.0.0) |
|---|
| | 2 | policy_module(kerneloops, 1.0.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 11 | 11 | init_daemon_domain(kerneloops_t, kerneloops_exec_t) |
|---|
| 12 | 12 | |
|---|
| | 13 | type kerneloops_initrc_exec_t; |
|---|
| | 14 | init_script_file(kerneloops_initrc_exec_t) |
|---|
| | 15 | |
|---|
| 13 | 16 | ######################################## |
|---|
| 14 | 17 | # |
|---|
| … | … | |
| 17 | 20 | |
|---|
| 18 | 21 | allow kerneloops_t self:capability sys_nice; |
|---|
| 19 | | allow kerneloops_t self:process { setsched getsched }; |
|---|
| | 22 | allow kerneloops_t self:process { setsched getsched signal }; |
|---|
| 20 | 23 | allow kerneloops_t self:fifo_file rw_file_perms; |
|---|
| | 24 | allow kerneloops_t self:netlink_route_socket r_netlink_socket_perms; |
|---|
| 21 | 25 | |
|---|
| 22 | 26 | kernel_read_ring_buffer(kerneloops_t) |
|---|
Download in other formats:
* Generating other formats may take time.