Changeset 2719
- Timestamp:
- 06/17/08 09:07:44
(4 months ago)
- Author:
- cpebenito
- Message:
trunk: podsleuth and hal updates from dan.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2718 |
r2719 |
|
| 14 | 14 | kerneloops (Dan Walsh) |
|---|
| 15 | 15 | kismet (Dan Walsh) |
|---|
| | 16 | podsleuth (Dan Walsh) |
|---|
| 16 | 17 | prelude (Dan Walsh) |
|---|
| 17 | 18 | qemu (Dan Walsh) |
|---|
| r2169 |
r2719 |
|
| 19 | 19 | domtrans_pattern($1, mono_exec_t, mono_t) |
|---|
| 20 | 20 | ') |
|---|
| | 21 | |
|---|
| | 22 | ######################################## |
|---|
| | 23 | ## <summary> |
|---|
| | 24 | ## Execute the mono program in the caller domain. |
|---|
| | 25 | ## </summary> |
|---|
| | 26 | ## <param name="domain"> |
|---|
| | 27 | ## <summary> |
|---|
| | 28 | ## Domain allowed access. |
|---|
| | 29 | ## </summary> |
|---|
| | 30 | ## </param> |
|---|
| | 31 | # |
|---|
| | 32 | interface(`mono_exec',` |
|---|
| | 33 | gen_require(` |
|---|
| | 34 | type mono_t, mono_exec_t; |
|---|
| | 35 | ') |
|---|
| | 36 | |
|---|
| | 37 | corecmd_search_bin($1) |
|---|
| | 38 | can_exec($1, mono_exec_t) |
|---|
| | 39 | ') |
|---|
| r2668 |
r2719 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(mono,1.4.1) |
|---|
| | 2 | policy_module(mono,1.4.2) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| r2489 |
r2719 |
|
| 9 | 9 | /usr/libexec/hal-system-sonypic -- gen_context(system_u:object_r:hald_sonypic_exec_t,s0) |
|---|
| 10 | 10 | /usr/libexec/hald-addon-macbookpro-backlight -- gen_context(system_u:object_r:hald_mac_exec_t,s0) |
|---|
| | 11 | /usr/libexec/hald-addon-macbook-backlight -- gen_context(system_u:object_r:hald_mac_exec_t,s0) |
|---|
| 11 | 12 | |
|---|
| 12 | 13 | /usr/sbin/hald -- gen_context(system_u:object_r:hald_exec_t,s0) |
|---|
| … | … | |
| 16 | 17 | /var/lib/hal(/.*)? gen_context(system_u:object_r:hald_var_lib_t,s0) |
|---|
| 17 | 18 | |
|---|
| | 19 | /var/log/pm(/.*)? gen_context(system_u:object_r:hald_log_t,s0) |
|---|
| 18 | 20 | /var/log/pm-suspend\.log gen_context(system_u:object_r:hald_log_t,s0) |
|---|
| 19 | 21 | |
|---|
| | 22 | /var/run/hald(/.*)? gen_context(system_u:object_r:hald_var_run_t,s0) |
|---|
| 20 | 23 | /var/run/haldaemon\.pid -- gen_context(system_u:object_r:hald_var_run_t,s0) |
|---|
| 21 | | /var/run/vbestate -- gen_context(system_u:object_r:hald_var_run_t,s0) |
|---|
| | 24 | /var/run/pm(/.*)? gen_context(system_u:object_r:hald_var_run_t,s0) |
|---|
| | 25 | /var/run/pm-utils(/.*)? gen_context(system_u:object_r:hald_var_run_t,s0) |
|---|
| | 26 | /var/run/vbe.* -- gen_context(system_u:object_r:hald_var_run_t,s0) |
|---|
| 22 | 27 | |
|---|
| 23 | 28 | ifdef(`distro_gentoo',` |
|---|
| r2668 |
r2719 |
|
| 1 | 1 | |
|---|
| 2 | | policy_module(hal,1.9.2) |
|---|
| | 2 | policy_module(hal,1.9.3) |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | ######################################## |
|---|
| … | … | |
| 58 | 58 | allow hald_t self:capability { chown setuid setgid kill net_admin sys_admin sys_nice dac_override dac_read_search mknod sys_rawio sys_tty_config }; |
|---|
| 59 | 59 | dontaudit hald_t self:capability {sys_ptrace sys_tty_config }; |
|---|
| 60 | | allow hald_t self:process signal_perms; |
|---|
| | 60 | allow hald_t self:process { getattr signal_perms }; |
|---|
| 61 | 61 | allow hald_t self:fifo_file rw_fifo_file_perms; |
|---|
| 62 | 62 | allow hald_t self:unix_stream_socket { create_stream_socket_perms connectto }; |
|---|
| … | … | |
| 71 | 71 | |
|---|
| 72 | 72 | # log files for hald |
|---|
| 73 | | allow hald_t hald_log_t:file manage_file_perms; |
|---|
| | 73 | manage_files_pattern(hald_t, hald_log_t, hald_log_t) |
|---|
| 74 | 74 | logging_log_filetrans(hald_t,hald_log_t,file) |
|---|
| 75 | 75 | |
|---|
| … | … | |
| 83 | 83 | manage_sock_files_pattern(hald_t,hald_var_lib_t,hald_var_lib_t) |
|---|
| 84 | 84 | |
|---|
| | 85 | manage_dirs_pattern(hald_t, hald_var_run_t, hald_var_run_t) |
|---|
| 85 | 86 | manage_files_pattern(hald_t,hald_var_run_t,hald_var_run_t) |
|---|
| 86 | | files_pid_filetrans(hald_t,hald_var_run_t,file) |
|---|
| | 87 | files_pid_filetrans(hald_t, hald_var_run_t, { dir file }) |
|---|
| 87 | 88 | |
|---|
| 88 | 89 | kernel_read_system_state(hald_t) |
|---|
| … | … | |
| 94 | 95 | kernel_rw_vm_sysctls(hald_t) |
|---|
| 95 | 96 | kernel_write_proc_files(hald_t) |
|---|
| | 97 | kernel_setsched(hald_t) |
|---|
| 96 | 98 | |
|---|
| 97 | 99 | auth_read_pam_console_data(hald_t) |
|---|
| … | … | |
| 120 | 122 | dev_setattr_usbfs_files(hald_t) |
|---|
| 121 | 123 | dev_rw_power_management(hald_t) |
|---|
| | 124 | dev_read_raw_memory(hald_t) |
|---|
| 122 | 125 | # hal is now execing pm-suspend |
|---|
| 123 | 126 | dev_rw_sysfs(hald_t) |
|---|
| | 127 | dev_read_video_dev(hald_t) |
|---|
| 124 | 128 | |
|---|
| 125 | 129 | domain_use_interactive_fds(hald_t) |
|---|
| … | … | |
| 167 | 171 | auth_use_nsswitch(hald_t) |
|---|
| 168 | 172 | |
|---|
| | 173 | fstools_getattr_swap_files(hald_t) |
|---|
| | 174 | |
|---|
| 169 | 175 | init_domtrans_script(hald_t) |
|---|
| 170 | 176 | init_read_utmp(hald_t) |
|---|
| … | … | |
| 246 | 252 | |
|---|
| 247 | 253 | optional_policy(` |
|---|
| | 254 | gpm_dontaudit_getattr_gpmctl(hald_t) |
|---|
| | 255 | ') |
|---|
| | 256 | |
|---|
| | 257 | optional_policy(` |
|---|
| 248 | 258 | hotplug_read_config(hald_t) |
|---|
| 249 | 259 | ') |
|---|
| … | … | |
| 267 | 277 | |
|---|
| 268 | 278 | optional_policy(` |
|---|
| | 279 | podsleuth_domtrans(hald_t) |
|---|
| | 280 | ') |
|---|
| | 281 | |
|---|
| | 282 | optional_policy(` |
|---|
| 269 | 283 | rpc_search_nfs_state_data(hald_t) |
|---|
| 270 | 284 | ') |
|---|
| … | … | |
| 293 | 307 | |
|---|
| 294 | 308 | allow hald_acl_t self:capability { dac_override fowner }; |
|---|
| 295 | | allow hald_acl_t self:fifo_file read_fifo_file_perms; |
|---|
| | 309 | allow hald_acl_t self:process { getattr signal }; |
|---|
| | 310 | allow hald_acl_t self:fifo_file rw_fifo_file_perms; |
|---|
| 296 | 311 | |
|---|
| 297 | 312 | domtrans_pattern(hald_t, hald_acl_exec_t, hald_acl_t) |
|---|
| … | … | |
| 303 | 318 | files_search_var_lib(hald_acl_t) |
|---|
| 304 | 319 | |
|---|
| | 320 | manage_dirs_pattern(hald_acl_t, hald_var_run_t, hald_var_run_t) |
|---|
| | 321 | manage_files_pattern(hald_acl_t, hald_var_run_t, hald_var_run_t) |
|---|
| | 322 | files_pid_filetrans(hald_acl_t, hald_var_run_t, { dir file }) |
|---|
| | 323 | |
|---|
| 305 | 324 | corecmd_exec_bin(hald_acl_t) |
|---|
| 306 | 325 | |
|---|
| 307 | 326 | dev_getattr_all_chr_files(hald_acl_t) |
|---|
| | 327 | dev_setattr_all_chr_files(hald_acl_t) |
|---|
| 308 | 328 | dev_getattr_generic_usb_dev(hald_acl_t) |
|---|
| 309 | 329 | dev_getattr_video_dev(hald_acl_t) |
|---|
| … | … | |
| 340 | 360 | files_search_var_lib(hald_mac_t) |
|---|
| 341 | 361 | |
|---|
| | 362 | kernel_read_system_state(hald_mac_t) |
|---|
| | 363 | |
|---|
| | 364 | dev_read_raw_memory(hald_mac_t) |
|---|
| 342 | 365 | dev_write_raw_memory(hald_mac_t) |
|---|
| | 366 | dev_read_sysfs(hald_mac_t) |
|---|
| 343 | 367 | |
|---|
| 344 | 368 | files_read_usr_files(hald_mac_t) |
|---|
| … | … | |
| 393 | 417 | |
|---|
| 394 | 418 | miscfiles_read_localization(hald_keymap_t) |
|---|
| | 419 | |
|---|
| | 420 | # This is caused by a bug in hald and PolicyKit. |
|---|
| | 421 | # Should be removed when this is fixed |
|---|
| | 422 | #cron_read_system_job_lib_files(hald_t) |
|---|
Download in other formats:
* Generating other formats may take time.