Changeset 2634
- Timestamp:
- 03/11/08 14:55:00
(9 months ago)
- Author:
- pebenito
- Message:
xselinux: update to trunk 2633.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2613 |
r2634 |
|
| | 1 | - Revise upstart support in init module to use a tunable, as upstart is now |
|---|
| | 2 | used in Fedora too. |
|---|
| | 3 | - Add iferror.m4 rather generate it out of the Makefiles. |
|---|
| | 4 | - Definitions for open permisson on file and similar objects from Eric |
|---|
| | 5 | Paris. |
|---|
| | 6 | - Apt updates for ptys and logs, from Martin Orr. |
|---|
| | 7 | - RPC update from Vaclav Ovsik. |
|---|
| | 8 | - Exim updates on Debian from Devin Carrawy. |
|---|
| | 9 | - Pam and samba updates from Stefan Schulze Frielinghaus. |
|---|
| | 10 | - Backup update on Debian from Vaclav Ovsik. |
|---|
| | 11 | - Cracklib update on Debian from Vaclav Ovsik. |
|---|
| 1 | 12 | - Label /proc/kallsyms with system_map_t. |
|---|
| 2 | 13 | - 64-bit capabilities from Stephen Smalley. |
|---|
| r2614 |
r2634 |
|
| 102 | 102 | comment_move_decl := $(SED) -r -f $(support)/comment_move_decl.sed |
|---|
| 103 | 103 | gennetfilter := $(PYTHON) -E $(support)/gennetfilter.py |
|---|
| | 104 | m4iferror := $(support)/iferror.m4 |
|---|
| 104 | 105 | # use our own genhomedircon to make sure we have a known usable one, |
|---|
| 105 | 106 | # so policycoreutils updates are not required (RHEL4) |
|---|
| r2573 |
r2634 |
|
| 137 | 137 | $(verbose) $(M4) $(M4PARAM) $^ > $@ |
|---|
| 138 | 138 | |
|---|
| 139 | | $(tmpdir)/all_interfaces.conf: $(m4support) $(all_interfaces) |
|---|
| 140 | | @test -d $(tmpdir) || mkdir -p $(tmpdir) |
|---|
| 141 | | @echo "ifdef(\`__if_error',\`m4exit(1)')" > $(tmpdir)/iferror.m4 |
|---|
| | 139 | $(tmpdir)/all_interfaces.conf: $(m4support) $(all_interfaces) $(m4iferror) |
|---|
| | 140 | @test -d $(tmpdir) || mkdir -p $(tmpdir) |
|---|
| 142 | 141 | @echo "divert(-1)" > $@ |
|---|
| 143 | | $(verbose) $(M4) $^ $(tmpdir)/iferror.m4 >> $(tmpdir)/$(@F).tmp |
|---|
| | 142 | $(verbose) $(M4) $^ >> $(tmpdir)/$(@F).tmp |
|---|
| 144 | 143 | $(verbose) $(SED) -e s/dollarsstar/\$$\*/g $(tmpdir)/$(@F).tmp >> $@ |
|---|
| 145 | 144 | @echo "divert" >> $@ |
|---|
| r2548 |
r2634 |
|
| 125 | 125 | $(verbose) $(M4) $(M4PARAM) $^ > $@ |
|---|
| 126 | 126 | |
|---|
| 127 | | $(tmpdir)/all_interfaces.conf: $(m4support) $(all_interfaces) |
|---|
| 128 | | @test -d $(tmpdir) || mkdir -p $(tmpdir) |
|---|
| 129 | | @echo "ifdef(\`__if_error',\`m4exit(1)')" > $(tmpdir)/iferror.m4 |
|---|
| | 127 | $(tmpdir)/all_interfaces.conf: $(m4support) $(all_interfaces) $(m4iferror) |
|---|
| | 128 | @test -d $(tmpdir) || mkdir -p $(tmpdir) |
|---|
| 130 | 129 | @echo "divert(-1)" > $@ |
|---|
| 131 | | $(verbose) $(M4) $^ $(tmpdir)/iferror.m4 >> $(tmpdir)/$(@F).tmp |
|---|
| | 130 | $(verbose) $(M4) $^ >> $(tmpdir)/$(@F).tmp |
|---|
| 132 | 131 | $(verbose) $(SED) -e s/dollarsstar/\$$\*/g $(tmpdir)/$(@F).tmp >> $@ |
|---|
| 133 | 132 | @echo "divert" >> $@ |
|---|
| r2620 |
r2634 |
|
| 126 | 126 | search |
|---|
| 127 | 127 | rmdir |
|---|
| | 128 | open |
|---|
| 128 | 129 | } |
|---|
| 129 | 130 | |
|---|
| … | … | |
| 134 | 135 | entrypoint |
|---|
| 135 | 136 | execmod |
|---|
| | 137 | open |
|---|
| 136 | 138 | } |
|---|
| 137 | 139 | |
|---|
| … | … | |
| 145 | 147 | entrypoint |
|---|
| 146 | 148 | execmod |
|---|
| | 149 | open |
|---|
| 147 | 150 | } |
|---|
| 148 | 151 | |
|---|
| 149 | 152 | class blk_file |
|---|
| 150 | 153 | inherits file |
|---|
| | 154 | { |
|---|
| | 155 | open |
|---|
| | 156 | } |
|---|
| 151 | 157 | |
|---|
| 152 | 158 | class sock_file |
|---|
| … | … | |
| 155 | 161 | class fifo_file |
|---|
| 156 | 162 | inherits file |
|---|
| | 163 | { |
|---|
| | 164 | open |
|---|
| | 165 | } |
|---|
| 157 | 166 | |
|---|
| 158 | 167 | class fd |
|---|
| r1589 |
r2634 |
|
| 12 | 12 | /var/lib/apt(/.*)? gen_context(system_u:object_r:apt_var_lib_t,s0) |
|---|
| 13 | 13 | /var/lib/aptitude(/.*)? gen_context(system_u:object_r:apt_var_lib_t,s0) |
|---|
| | 14 | |
|---|
| | 15 | # dpkg terminal log |
|---|
| | 16 | /var/log/apt(/.*)? gen_context(system_u:object_r:apt_var_log_t,s0) |
|---|
| r2169 |
r2634 |
|
| 112 | 112 | ######################################## |
|---|
| 113 | 113 | ## <summary> |
|---|
| | 114 | ## Read from and write to apt ptys. |
|---|
| | 115 | ## </summary> |
|---|
| | 116 | ## <param name="domain"> |
|---|
| | 117 | ## <summary> |
|---|
| | 118 | ## Domain allowed access. |
|---|
| | 119 | ## </summary> |
|---|
| | 120 | ## </param> |
|---|
| | 121 | # |
|---|
| | 122 | interface(`apt_use_ptys',` |
|---|
| | 123 | gen_require(` |
|---|
| | 124 | type apt_devpts_t; |
|---|
| | 125 | ') |
|---|
| | 126 | |
|---|
| | 127 | allow $1 apt_devpts_t:chr_file rw_term_perms; |
|---|
| | 128 | ') |
|---|
| | 129 | |
|---|
| | 130 | ######################################## |
|---|
| | 131 | ## <summary> |
|---|
| 114 | 132 | ## Read the apt package database. |
|---|
| 115 | 133 | ## </summary> |
|---|
| r2573 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(apt,1.3.0) |
|---|
| | 2 | policy_module(apt,1.3.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 12 | 12 | domain_system_change_exemption(apt_t) |
|---|
| 13 | 13 | role system_r types apt_t; |
|---|
| | 14 | |
|---|
| | 15 | # pseudo terminal for running dpkg |
|---|
| | 16 | type apt_devpts_t; |
|---|
| | 17 | term_pty(apt_devpts_t) |
|---|
| 14 | 18 | |
|---|
| 15 | 19 | type apt_tmp_t; |
|---|
| … | … | |
| 26 | 30 | type apt_var_cache_t alias var_cache_apt_t; |
|---|
| 27 | 31 | files_type(apt_var_cache_t) |
|---|
| | 32 | |
|---|
| | 33 | type apt_var_log_t; |
|---|
| | 34 | logging_log_file(apt_var_log_t) |
|---|
| 28 | 35 | |
|---|
| 29 | 36 | ######################################## |
|---|
| … | … | |
| 98 | 105 | fs_getattr_all_fs(apt_t) |
|---|
| 99 | 106 | |
|---|
| | 107 | term_create_pty(apt_t, apt_devpts_t) |
|---|
| 100 | 108 | term_list_ptys(apt_t) |
|---|
| 101 | 109 | term_use_all_terms(apt_t) |
|---|
| r1797 |
r2634 |
|
| 5 | 5 | |
|---|
| 6 | 6 | #/usr/local/bin/backup-script -- gen_context(system_u:object_r:backup_exec_t,s0) |
|---|
| | 7 | |
|---|
| | 8 | ifdef(`distro_debian',` |
|---|
| | 9 | /etc/cron.daily/aptitude -- gen_context(system_u:object_r:backup_exec_t,s0) |
|---|
| | 10 | /etc/cron.daily/standard -- gen_context(system_u:object_r:backup_exec_t,s0) |
|---|
| | 11 | ') |
|---|
| | 12 | |
|---|
| 7 | 13 | /var/backups(/.*)? gen_context(system_u:object_r:backup_store_t,s0) |
|---|
| r2360 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(backup,1.2.0) |
|---|
| | 2 | policy_module(backup,1.2.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 28 | 28 | |
|---|
| 29 | 29 | allow backup_t backup_store_t:file setattr; |
|---|
| 30 | | create_files_pattern(backup_t,backup_store_t,backup_store_t) |
|---|
| | 30 | manage_files_pattern(backup_t,backup_store_t,backup_store_t) |
|---|
| 31 | 31 | rw_files_pattern(backup_t,backup_store_t,backup_store_t) |
|---|
| 32 | 32 | read_lnk_files_pattern(backup_t,backup_store_t,backup_store_t) |
|---|
| … | … | |
| 36 | 36 | |
|---|
| 37 | 37 | corecmd_exec_bin(backup_t) |
|---|
| | 38 | corecmd_exec_shell(backup_t) |
|---|
| 38 | 39 | |
|---|
| 39 | 40 | corenet_all_recvfrom_unlabeled(backup_t) |
|---|
| r2573 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(dpkg,1.4.0) |
|---|
| | 2 | policy_module(dpkg,1.4.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 151 | 151 | |
|---|
| 152 | 152 | init_domtrans_script(dpkg_t) |
|---|
| | 153 | init_use_script_ptys(dpkg_t) |
|---|
| 153 | 154 | |
|---|
| 154 | 155 | libs_use_ld_so(dpkg_t) |
|---|
| … | … | |
| 172 | 173 | # since the scripts aren't labeled correctly yet... |
|---|
| 173 | 174 | allow dpkg_t dpkg_var_lib_t:file execute; |
|---|
| | 175 | |
|---|
| | 176 | optional_policy(` |
|---|
| | 177 | apt_use_ptys(dpkg_t) |
|---|
| | 178 | ') |
|---|
| 174 | 179 | |
|---|
| 175 | 180 | # TODO: allow? |
|---|
| … | … | |
| 291 | 296 | |
|---|
| 292 | 297 | init_domtrans_script(dpkg_script_t) |
|---|
| | 298 | init_use_script_fds(dpkg_script_t) |
|---|
| 293 | 299 | |
|---|
| 294 | 300 | libs_use_ld_so(dpkg_script_t) |
|---|
| … | … | |
| 315 | 321 | |
|---|
| 316 | 322 | optional_policy(` |
|---|
| | 323 | apt_rw_pipes(dpkg_script_t) |
|---|
| | 324 | apt_use_fds(dpkg_script_t) |
|---|
| | 325 | ') |
|---|
| | 326 | |
|---|
| | 327 | optional_policy(` |
|---|
| 317 | 328 | bootloader_domtrans(dpkg_script_t) |
|---|
| 318 | 329 | ') |
|---|
| r1993 |
r2634 |
|
| 4 | 4 | |
|---|
| 5 | 5 | ifdef(`distro_debian', ` |
|---|
| 6 | | /usr/bin/savelog -- gen_context(system_u:object_r:logrotate_exec_t,s0) |
|---|
| 7 | 6 | /var/lib/logrotate(/.*)? gen_context(system_u:object_r:logrotate_var_lib_t,s0) |
|---|
| 8 | 7 | ', ` |
|---|
| r2573 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(logrotate,1.7.0) |
|---|
| | 2 | policy_module(logrotate,1.7.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| r2573 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(usermanage,1.9.0) |
|---|
| | 2 | policy_module(usermanage,1.9.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 162 | 162 | userdom_dontaudit_search_sysadm_home_dirs(crack_t) |
|---|
| 163 | 163 | |
|---|
| | 164 | ifdef(`distro_debian',` |
|---|
| | 165 | # the package cracklib-runtime on Debian contains a daily maintenance |
|---|
| | 166 | # script /etc/cron.daily/cracklib-runtime, that calls |
|---|
| | 167 | # update-cracklib and that calls crack_mkdict, which is a shell script. |
|---|
| | 168 | corecmd_exec_shell(crack_t) |
|---|
| | 169 | ') |
|---|
| | 170 | |
|---|
| 164 | 171 | optional_policy(` |
|---|
| 165 | 172 | cron_system_entry(crack_t,crack_exec_t) |
|---|
| r2573 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(loadkeys,1.3.0) |
|---|
| | 2 | policy_module(loadkeys,1.3.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 33 | 33 | term_use_unallocated_ttys(loadkeys_t) |
|---|
| 34 | 34 | |
|---|
| | 35 | init_dontaudit_use_fds(loadkeys_t) |
|---|
| 35 | 36 | init_dontaudit_use_script_ptys(loadkeys_t) |
|---|
| 36 | 37 | |
|---|
| r2548 |
r2634 |
|
| 168 | 168 | |
|---|
| 169 | 169 | dontaudit $1 fixed_disk_device_t:blk_file write_blk_file_perms; |
|---|
| | 170 | ') |
|---|
| | 171 | |
|---|
| | 172 | ######################################## |
|---|
| | 173 | ## <summary> |
|---|
| | 174 | ## Allow the caller to directly read and write to a fixed disk. |
|---|
| | 175 | ## This is extremly dangerous as it can bypass the |
|---|
| | 176 | ## SELinux protections for filesystem objects, and |
|---|
| | 177 | ## should only be used by trusted domains. |
|---|
| | 178 | ## </summary> |
|---|
| | 179 | ## <param name="domain"> |
|---|
| | 180 | ## <summary> |
|---|
| | 181 | ## Domain allowed access. |
|---|
| | 182 | ## </summary> |
|---|
| | 183 | ## </param> |
|---|
| | 184 | # |
|---|
| | 185 | interface(`storage_raw_rw_fixed_disk',` |
|---|
| | 186 | storage_raw_read_fixed_disk($1) |
|---|
| | 187 | storage_raw_write_fixed_disk($1) |
|---|
| 170 | 188 | ') |
|---|
| 171 | 189 | |
|---|
| r2573 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(storage,1.5.0) |
|---|
| | 2 | policy_module(storage,1.5.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| r1933 |
r2634 |
|
| 28 | 28 | # |
|---|
| 29 | 29 | /var/run/dovecot(-login)?(/.*)? gen_context(system_u:object_r:dovecot_var_run_t,s0) |
|---|
| | 30 | # this is a hard link to /var/lib/dovecot/ssl-parameters.dat |
|---|
| | 31 | /var/run/dovecot/login/ssl-parameters.dat gen_context(system_u:object_r:dovecot_var_lib_t,s0) |
|---|
| 30 | 32 | |
|---|
| 31 | 33 | /var/lib/dovecot(/.*)? gen_context(system_u:object_r:dovecot_var_lib_t,s0) |
|---|
| r2169 |
r2634 |
|
| 19 | 19 | manage_lnk_files_pattern($1,dovecot_spool_t,dovecot_spool_t) |
|---|
| 20 | 20 | ') |
|---|
| | 21 | |
|---|
| | 22 | ######################################## |
|---|
| | 23 | ## <summary> |
|---|
| | 24 | ## Do not audit attempts to delete dovecot lib files. |
|---|
| | 25 | ## </summary> |
|---|
| | 26 | ## <param name="domain"> |
|---|
| | 27 | ## <summary> |
|---|
| | 28 | ## Domain to not audit. |
|---|
| | 29 | ## </summary> |
|---|
| | 30 | ## </param> |
|---|
| | 31 | # |
|---|
| | 32 | interface(`dovecot_dontaudit_unlink_lib_files',` |
|---|
| | 33 | gen_require(` |
|---|
| | 34 | type dovecot_var_lib_t; |
|---|
| | 35 | ') |
|---|
| | 36 | |
|---|
| | 37 | dontaudit $1 dovecot_var_lib_t:file unlink; |
|---|
| | 38 | ') |
|---|
| r2573 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(dovecot,1.7.0) |
|---|
| | 2 | policy_module(dovecot,1.7.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| r2548 |
r2634 |
|
| 1 | | /usr/sbin/exim -- gen_context(system_u:object_r:exim_exec_t,s0) |
|---|
| 2 | | /var/log/exim(/.*)? gen_context(system_u:object_r:exim_log_t,s0) |
|---|
| 3 | | /var/run/exim.pid -- gen_context(system_u:object_r:exim_var_run_t,s0) |
|---|
| 4 | | /var/spool/exim(/.*)? gen_context(system_u:object_r:exim_spool_t,s0) |
|---|
| | 1 | /usr/sbin/exim[0-9]? -- gen_context(system_u:object_r:exim_exec_t,s0) |
|---|
| | 2 | /var/log/exim[0-9]?(/.*)? gen_context(system_u:object_r:exim_log_t,s0) |
|---|
| | 3 | /var/run/exim[0-9]?\.pid -- gen_context(system_u:object_r:exim_var_run_t,s0) |
|---|
| | 4 | /var/spool/exim[0-9]?(/.*)? gen_context(system_u:object_r:exim_spool_t,s0) |
|---|
| | 5 | |
|---|
| | 6 | ifdef(`distro_debian',` |
|---|
| | 7 | /var/run/exim[0-9]?(/.*)? gen_context(system_u:object_r:exim_var_run_t,s0) |
|---|
| | 8 | ') |
|---|
| r2548 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(exim,1.0.0) |
|---|
| | 2 | policy_module(exim,1.0.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 43 | 43 | # |
|---|
| 44 | 44 | |
|---|
| 45 | | allow exim_t self:capability { dac_override dac_read_search setuid setgid }; |
|---|
| | 45 | allow exim_t self:capability { dac_override dac_read_search setuid setgid fowner chown }; |
|---|
| 46 | 46 | allow exim_t self:fifo_file rw_fifo_file_perms; |
|---|
| 47 | 47 | allow exim_t self:unix_stream_socket create_stream_socket_perms; |
|---|
| … | … | |
| 68 | 68 | kernel_read_kernel_sysctls(exim_t) |
|---|
| 69 | 69 | |
|---|
| | 70 | kernel_dontaudit_read_system_state(exim_t) |
|---|
| | 71 | |
|---|
| 70 | 72 | corecmd_search_bin(exim_t) |
|---|
| 71 | 73 | |
|---|
| … | … | |
| 78 | 80 | corenet_tcp_bind_amavisd_send_port(exim_t) |
|---|
| 79 | 81 | corenet_tcp_connect_auth_port(exim_t) |
|---|
| | 82 | corenet_tcp_connect_smtp_port(exim_t) |
|---|
| | 83 | corenet_tcp_connect_ldap_port(exim_t) |
|---|
| 80 | 84 | corenet_tcp_connect_inetd_child_port(exim_t) |
|---|
| | 85 | |
|---|
| | 86 | dev_read_rand(exim_t) |
|---|
| | 87 | dev_read_urand(exim_t) |
|---|
| 81 | 88 | |
|---|
| 82 | 89 | # Init script handling |
|---|
| r2181 |
r2634 |
|
| 8 | 8 | # |
|---|
| 9 | 9 | /sbin/rpc\..* -- gen_context(system_u:object_r:rpcd_exec_t,s0) |
|---|
| | 10 | /sbin/sm-notify -- gen_context(system_u:object_r:rpcd_exec_t,s0) |
|---|
| 10 | 11 | |
|---|
| 11 | 12 | # |
|---|
| r2573 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(rpc,1.7.0) |
|---|
| | 2 | policy_module(rpc,1.7.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 61 | 61 | files_pid_filetrans(rpcd_t,rpcd_var_run_t,file) |
|---|
| 62 | 62 | |
|---|
| | 63 | # rpc.statd executes sm-notify |
|---|
| | 64 | can_exec(rpcd_t, rpcd_exec_t) |
|---|
| | 65 | corecmd_search_bin(rpcd_t) |
|---|
| | 66 | |
|---|
| 63 | 67 | kernel_read_system_state(rpcd_t) |
|---|
| 64 | 68 | kernel_search_network_state(rpcd_t) |
|---|
| 65 | 69 | # for rpc.rquotad |
|---|
| 66 | 70 | kernel_read_sysctl(rpcd_t) |
|---|
| | 71 | kernel_rw_fs_sysctls(rpcd_t) |
|---|
| 67 | 72 | |
|---|
| 68 | 73 | fs_list_rpc(rpcd_t) |
|---|
| r2573 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(samba,1.7.0) |
|---|
| | 2 | policy_module(samba,1.7.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ################################# |
|---|
| … | … | |
| 223 | 223 | |
|---|
| 224 | 224 | create_dirs_pattern(smbd_t,samba_log_t,samba_log_t) |
|---|
| 225 | | create_files_pattern(smbd_t,samba_log_t,samba_log_t) |
|---|
| | 225 | manage_files_pattern(smbd_t,samba_log_t,samba_log_t) |
|---|
| 226 | 226 | allow smbd_t samba_log_t:dir setattr; |
|---|
| 227 | 227 | dontaudit smbd_t samba_log_t:dir remove_name; |
|---|
| r2573 |
r2634 |
|
| 42 | 42 | /var/run/console(/.*)? gen_context(system_u:object_r:pam_var_console_t,s0) |
|---|
| 43 | 43 | |
|---|
| | 44 | /var/run/pam_mount(/.*)? gen_context(system_u:object_r:pam_var_run_t,s0) |
|---|
| 44 | 45 | /var/run/sudo(/.*)? gen_context(system_u:object_r:pam_var_run_t,s0) |
|---|
| r2613 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(authlogin,1.9.1) |
|---|
| | 2 | policy_module(authlogin,1.9.2) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| r2613 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(init,1.9.0) |
|---|
| | 2 | policy_module(init,1.9.2) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | gen_require(` |
|---|
| … | … | |
| 10 | 10 | # Declarations |
|---|
| 11 | 11 | # |
|---|
| | 12 | |
|---|
| | 13 | ## <desc> |
|---|
| | 14 | ## <p> |
|---|
| | 15 | ## Enable support for upstart as the init program. |
|---|
| | 16 | ## </p> |
|---|
| | 17 | ## </desc> |
|---|
| | 18 | gen_tunable(init_upstart,false) |
|---|
| 12 | 19 | |
|---|
| 13 | 20 | # used for direct running of init scripts |
|---|
| … | … | |
| 50 | 57 | domain_entry_file(initrc_t,initrc_exec_t) |
|---|
| 51 | 58 | role system_r types initrc_t; |
|---|
| | 59 | # should be part of the true block |
|---|
| | 60 | # of the below init_upstart tunable |
|---|
| | 61 | # but this has a typeattribute in it |
|---|
| | 62 | corecmd_shell_entry_type(initrc_t) |
|---|
| 52 | 63 | |
|---|
| 53 | 64 | type initrc_devpts_t; |
|---|
| … | … | |
| 164 | 175 | ') |
|---|
| 165 | 176 | |
|---|
| 166 | | ifndef(`distro_ubuntu',` |
|---|
| | 177 | tunable_policy(`init_upstart',` |
|---|
| | 178 | corecmd_shell_domtrans(init_t,initrc_t) |
|---|
| | 179 | ',` |
|---|
| 167 | 180 | # Run the shell in the sysadm role for single-user mode. |
|---|
| 168 | 181 | # causes problems with upstart |
|---|
| … | … | |
| 560 | 573 | |
|---|
| 561 | 574 | optional_policy(` |
|---|
| | 575 | # /var/run/dovecot/login/ssl-parameters.dat is a hard link to |
|---|
| | 576 | # /var/lib/dovecot/ssl-parameters.dat and init tries to clean up |
|---|
| | 577 | # the directory. But we do not want to allow this. |
|---|
| | 578 | # The master process of dovecot will manage this file. |
|---|
| | 579 | dovecot_dontaudit_unlink_lib_files(initrc_t) |
|---|
| | 580 | ') |
|---|
| | 581 | |
|---|
| | 582 | optional_policy(` |
|---|
| 562 | 583 | ftp_read_config(initrc_t) |
|---|
| 563 | 584 | ') |
|---|
| r2613 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(libraries,2.0.0) |
|---|
| | 2 | policy_module(libraries,2.0.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 99 | 99 | |
|---|
| 100 | 100 | optional_policy(` |
|---|
| | 101 | apt_rw_pipes(ldconfig_t) |
|---|
| | 102 | apt_use_fds(ldconfig_t) |
|---|
| | 103 | apt_use_ptys(ldconfig_t) |
|---|
| | 104 | ') |
|---|
| | 105 | |
|---|
| | 106 | optional_policy(` |
|---|
| 101 | 107 | # When you install a kernel the postinstall builds a initrd image in tmp |
|---|
| 102 | 108 | # and executes ldconfig on it. If you dont allow this kernel installs |
|---|
| r2573 |
r2634 |
|
| 16 | 16 | /usr/sbin/klogd -- gen_context(system_u:object_r:klogd_exec_t,s0) |
|---|
| 17 | 17 | /usr/sbin/metalog -- gen_context(system_u:object_r:syslogd_exec_t,s0) |
|---|
| | 18 | /usr/sbin/rklogd -- gen_context(system_u:object_r:klogd_exec_t,s0) |
|---|
| | 19 | /usr/sbin/rsyslogd -- gen_context(system_u:object_r:syslogd_exec_t,s0) |
|---|
| | 20 | /usr/sbin/syslog-ng -- gen_context(system_u:object_r:syslogd_exec_t,s0) |
|---|
| 18 | 21 | /usr/sbin/syslogd -- gen_context(system_u:object_r:syslogd_exec_t,s0) |
|---|
| 19 | | ifdef(`distro_gentoo', ` |
|---|
| 20 | | /usr/sbin/syslog-ng -- gen_context(system_u:object_r:syslogd_exec_t,s0) |
|---|
| 21 | | ') |
|---|
| 22 | 22 | |
|---|
| 23 | 23 | ifdef(`distro_suse', ` |
|---|
| r2613 |
r2634 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(logging,1.9.0) |
|---|
| | 2 | policy_module(logging,1.9.1) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
Download in other formats:
* Generating other formats may take time.