Changeset 2659
- Timestamp:
- 04/04/08 12:08:34
(8 months ago)
- Author:
- pebenito
- Message:
trunk: 7 patches from dan.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2372 |
r2659 |
|
| 181 | 181 | nscd_socket_use($1_userhelper_t) |
|---|
| 182 | 182 | ') |
|---|
| 183 | | |
|---|
| 184 | | ifdef(`TODO',` |
|---|
| 185 | | allow $1_userhelper_t xdm_t:fd use; |
|---|
| 186 | | allow $1_userhelper_t xdm_var_run_t:dir search; |
|---|
| 187 | | allow $1_userhelper_t xdm_t:fifo_file { getattr read write ioctl }; |
|---|
| 188 | | |
|---|
| 189 | | optional_policy(` |
|---|
| 190 | | allow $1_userhelper_t gphdomain:fd use; |
|---|
| 191 | | ') |
|---|
| 192 | | optional_policy(` |
|---|
| 193 | | domtrans_pattern($1_userhelper_t, xauth_exec_t, $1_xauth_t) |
|---|
| 194 | | allow $1_userhelper_t $1_xauth_home_t:file { getattr read }; |
|---|
| 195 | | ') |
|---|
| 196 | | optional_policy(` |
|---|
| 197 | | domtrans_pattern($1_mozilla_t, userhelper_exec_t, $1_userhelper_t) |
|---|
| 198 | | ') |
|---|
| 199 | | # for when the network connection is killed |
|---|
| 200 | | dontaudit unpriv_userdomain $1_userhelper_t:process signal; |
|---|
| 201 | | ') |
|---|
| 202 | 183 | ') |
|---|
| 203 | 184 | |
|---|
| r2478 |
r2659 |
|
| 852 | 852 | ') |
|---|
| 853 | 853 | |
|---|
| 854 | | read_files_pattern($1,proc_t,proc_afs_t) |
|---|
| 855 | | |
|---|
| 856 | 854 | list_dirs_pattern($1,proc_t,proc_t) |
|---|
| | 855 | rw_files_pattern($1,proc_afs_t,proc_afs_t) |
|---|
| 857 | 856 | ') |
|---|
| 858 | 857 | |
|---|
| r2553 |
r2659 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(kernel,1.9.0) |
|---|
| | 2 | policy_module(kernel,1.9.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 364 | 364 | allow kern_unconfined proc_type:{ dir file lnk_file } *; |
|---|
| 365 | 365 | |
|---|
| 366 | | allow kern_unconfined sysctl_t:{ dir file } *; |
|---|
| | 366 | allow kern_unconfined sysctl_type:{ dir file } *; |
|---|
| 367 | 367 | |
|---|
| 368 | 368 | allow kern_unconfined kernel_t:system *; |
|---|
| … | … | |
| 373 | 373 | allow kern_unconfined unlabeled_t:packet *; |
|---|
| 374 | 374 | allow kern_unconfined unlabeled_t:process ~{ transition dyntransition execmem execstack execheap }; |
|---|
| 375 | | |
|---|
| 376 | | kernel_rw_all_sysctls(kern_unconfined) |
|---|
| r1142 |
r2659 |
|
| 1 | 1 | ## <summary>Remote-mail retrieval and forwarding utility</summary> |
|---|
| | 2 | |
|---|
| | 3 | ######################################## |
|---|
| | 4 | ## <summary> |
|---|
| | 5 | ## All of the rules required to administrate |
|---|
| | 6 | ## an fetchmail environment |
|---|
| | 7 | ## </summary> |
|---|
| | 8 | ## <param name="domain"> |
|---|
| | 9 | ## <summary> |
|---|
| | 10 | ## Domain allowed access. |
|---|
| | 11 | ## </summary> |
|---|
| | 12 | ## </param> |
|---|
| | 13 | ## <param name="role"> |
|---|
| | 14 | ## <summary> |
|---|
| | 15 | ## The role to be allowed to manage the fetchmail domain. |
|---|
| | 16 | ## </summary> |
|---|
| | 17 | ## </param> |
|---|
| | 18 | ## <param name="terminal"> |
|---|
| | 19 | ## <summary> |
|---|
| | 20 | ## The type of the user terminal. |
|---|
| | 21 | ## </summary> |
|---|
| | 22 | ## </param> |
|---|
| | 23 | ## <rolecap/> |
|---|
| | 24 | # |
|---|
| | 25 | interface(`fetchmail_admin',` |
|---|
| | 26 | gen_require(` |
|---|
| | 27 | type fetchmail_t, fetchmail_etc_t; |
|---|
| | 28 | type fetchmail_uidl_cache_t, fetchmail_var_run_t; |
|---|
| | 29 | ') |
|---|
| | 30 | |
|---|
| | 31 | ps_process_pattern($1, fetchmail_t) |
|---|
| | 32 | |
|---|
| | 33 | files_list_etc($1) |
|---|
| | 34 | manage_files_pattern($1, fetchmail_etc_t, fetchmail_etc_t) |
|---|
| | 35 | |
|---|
| | 36 | manage_files_pattern($1, fetchmail_uidl_cache_t, fetchmail_uidl_cache_t) |
|---|
| | 37 | |
|---|
| | 38 | files_list_pids($1) |
|---|
| | 39 | manage_files_pattern($1, fetchmail_var_run_t, fetchmail_var_run_t) |
|---|
| | 40 | ') |
|---|
| r2553 |
r2659 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(fetchmail,1.5.0) |
|---|
| | 2 | policy_module(fetchmail,1.5.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| r2553 |
r2659 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(openct,1.2.0) |
|---|
| | 2 | policy_module(openct,1.2.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 23 | 23 | |
|---|
| 24 | 24 | manage_files_pattern(openct_t,openct_var_run_t,openct_var_run_t) |
|---|
| 25 | | files_pid_filetrans(openct_t,openct_var_run_t,file) |
|---|
| | 25 | manage_sock_files_pattern(openct_t,openct_var_run_t,openct_var_run_t) |
|---|
| | 26 | files_pid_filetrans(openct_t,openct_var_run_t,{ file sock_file }) |
|---|
| 26 | 27 | |
|---|
| 27 | 28 | kernel_read_kernel_sysctls(openct_t) |
|---|
| r2553 |
r2659 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(pegasus,1.5.0) |
|---|
| | 2 | policy_module(pegasus,1.5.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 43 | 43 | allow pegasus_t pegasus_conf_t:lnk_file read_lnk_file_perms; |
|---|
| 44 | 44 | |
|---|
| | 45 | manage_dirs_pattern(pegasus_t,pegasus_data_t,pegasus_data_t) |
|---|
| 45 | 46 | manage_files_pattern(pegasus_t,pegasus_data_t,pegasus_data_t) |
|---|
| 46 | 47 | manage_lnk_files_pattern(pegasus_t,pegasus_data_t,pegasus_data_t) |
|---|
| … | … | |
| 114 | 115 | |
|---|
| 115 | 116 | logging_send_audit_msgs(pegasus_t) |
|---|
| | 117 | logging_send_syslog_msg(pegasus_t) |
|---|
| 116 | 118 | |
|---|
| 117 | 119 | miscfiles_read_localization(pegasus_t) |
|---|
| 118 | 120 | |
|---|
| 119 | 121 | sysnet_read_config(pegasus_t) |
|---|
| | 122 | sysnet_domtrans_ifconfig(pegasus_t) |
|---|
| 120 | 123 | |
|---|
| 121 | 124 | userdom_dontaudit_use_unpriv_user_fds(pegasus_t) |
|---|
| 122 | 125 | userdom_dontaudit_search_sysadm_home_dirs(pegasus_t) |
|---|
| 123 | | |
|---|
| 124 | | optional_policy(` |
|---|
| 125 | | logging_send_syslog_msg(pegasus_t) |
|---|
| 126 | | ') |
|---|
| 127 | 126 | |
|---|
| 128 | 127 | optional_policy(` |
|---|
| r2553 |
r2659 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(rlogin,1.6.0) |
|---|
| | 2 | policy_module(rlogin,1.6.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 62 | 62 | dev_read_urand(rlogind_t) |
|---|
| 63 | 63 | |
|---|
| | 64 | domain_interactive_fd(rlogind_t) |
|---|
| | 65 | |
|---|
| 64 | 66 | fs_getattr_xattr_fs(rlogind_t) |
|---|
| 65 | 67 | fs_search_auto_mountpoints(rlogind_t) |
|---|
| … | … | |
| 83 | 85 | miscfiles_read_localization(rlogind_t) |
|---|
| 84 | 86 | |
|---|
| 85 | | seutil_dontaudit_search_config(rlogind_t) |
|---|
| | 87 | seutil_read_config(rlogind_t) |
|---|
| 86 | 88 | |
|---|
| 87 | 89 | userdom_setattr_unpriv_users_ptys(rlogind_t) |
|---|
| … | … | |
| 90 | 92 | |
|---|
| 91 | 93 | remotelogin_domtrans(rlogind_t) |
|---|
| | 94 | remotelogin_signal(rlogind_t) |
|---|
| 92 | 95 | |
|---|
| 93 | 96 | optional_policy(` |
|---|
| | 97 | kerberos_use(rlogind_t) |
|---|
| 94 | 98 | kerberos_read_keytab(rlogind_t) |
|---|
| 95 | 99 | ') |
|---|
| … | … | |
| 98 | 102 | tcpd_wrapped_domain(rlogind_t, rlogind_exec_t) |
|---|
| 99 | 103 | ') |
|---|
| 100 | | |
|---|
| 101 | | ifdef(`TODO',` |
|---|
| 102 | | # Allow krb5 rlogind to use fork and open /dev/tty for use |
|---|
| 103 | | allow rlogind_t userpty_type:chr_file setattr; |
|---|
| 104 | | ') |
|---|
| r2553 |
r2659 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(telnet,1.6.0) |
|---|
| | 2 | policy_module(telnet,1.6.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 60 | 60 | dev_read_urand(telnetd_t) |
|---|
| 61 | 61 | |
|---|
| | 62 | domain_interactive_fd(telnetd_t) |
|---|
| | 63 | |
|---|
| 62 | 64 | fs_getattr_xattr_fs(telnetd_t) |
|---|
| 63 | 65 | |
|---|
| … | … | |
| 67 | 69 | corecmd_search_bin(telnetd_t) |
|---|
| 68 | 70 | |
|---|
| | 71 | files_read_usr_files(telnetd_t) |
|---|
| 69 | 72 | files_read_etc_files(telnetd_t) |
|---|
| 70 | 73 | files_read_etc_runtime_files(telnetd_t) |
|---|
| … | … | |
| 81 | 84 | miscfiles_read_localization(telnetd_t) |
|---|
| 82 | 85 | |
|---|
| 83 | | seutil_dontaudit_search_config(telnetd_t) |
|---|
| | 86 | seutil_read_config(telnetd_t) |
|---|
| 84 | 87 | |
|---|
| 85 | 88 | remotelogin_domtrans(telnetd_t) |
|---|
| 86 | 89 | |
|---|
| 87 | | # for identd; cjp: this should probably only be inetd_child rules? |
|---|
| | 90 | userdom_search_unpriv_users_home_dirs(telnetd_t) |
|---|
| | 91 | |
|---|
| 88 | 92 | optional_policy(` |
|---|
| 89 | 93 | kerberos_use(telnetd_t) |
|---|
| … | … | |
| 91 | 95 | ') |
|---|
| 92 | 96 | |
|---|
| 93 | | ifdef(`TODO',` |
|---|
| 94 | | # Allow krb5 telnetd to use fork and open /dev/tty for use |
|---|
| 95 | | allow telnetd_t userpty_type:chr_file setattr; |
|---|
| | 97 | tunable_policy(`use_nfs_home_dirs',` |
|---|
| | 98 | fs_search_nfs(telnetd_t) |
|---|
| 96 | 99 | ') |
|---|
| | 100 | |
|---|
| | 101 | tunable_policy(`use_samba_home_dirs',` |
|---|
| | 102 | fs_search_cifs(telnetd_t) |
|---|
| | 103 | ') |
|---|
Download in other formats:
* Generating other formats may take time.