Changeset 2719

Show
Ignore:
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
  • trunk/Changelog

    r2718 r2719  
    1414        kerneloops (Dan Walsh) 
    1515        kismet (Dan Walsh) 
     16        podsleuth (Dan Walsh) 
    1617        prelude (Dan Walsh) 
    1718        qemu (Dan Walsh) 
  • trunk/policy/modules/apps/mono.if

    r2169 r2719  
    1919        domtrans_pattern($1, mono_exec_t, mono_t) 
    2020') 
     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# 
     32interface(`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') 
  • trunk/policy/modules/apps/mono.te

    r2668 r2719  
    11 
    2 policy_module(mono,1.4.1
     2policy_module(mono,1.4.2
    33 
    44######################################## 
  • trunk/policy/modules/services/hal.fc

    r2489 r2719  
    99/usr/libexec/hal-system-sonypic         --      gen_context(system_u:object_r:hald_sonypic_exec_t,s0) 
    1010/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) 
    1112 
    1213/usr/sbin/hald          --                      gen_context(system_u:object_r:hald_exec_t,s0) 
     
    1617/var/lib/hal(/.*)?                              gen_context(system_u:object_r:hald_var_lib_t,s0) 
    1718 
     19/var/log/pm(/.*)?                               gen_context(system_u:object_r:hald_log_t,s0) 
    1820/var/log/pm-suspend\.log                        gen_context(system_u:object_r:hald_log_t,s0) 
    1921 
     22/var/run/hald(/.*)?                             gen_context(system_u:object_r:hald_var_run_t,s0) 
    2023/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) 
    2227 
    2328ifdef(`distro_gentoo',` 
  • trunk/policy/modules/services/hal.te

    r2668 r2719  
    11 
    2 policy_module(hal,1.9.2
     2policy_module(hal,1.9.3
    33 
    44######################################## 
     
    5858allow 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 }; 
    5959dontaudit hald_t self:capability {sys_ptrace sys_tty_config }; 
    60 allow hald_t self:process signal_perms
     60allow hald_t self:process { getattr signal_perms }
    6161allow hald_t self:fifo_file rw_fifo_file_perms; 
    6262allow hald_t self:unix_stream_socket { create_stream_socket_perms connectto }; 
     
    7171 
    7272# log files for hald 
    73 allow hald_t hald_log_t:file manage_file_perms; 
     73manage_files_pattern(hald_t, hald_log_t, hald_log_t) 
    7474logging_log_filetrans(hald_t,hald_log_t,file) 
    7575 
     
    8383manage_sock_files_pattern(hald_t,hald_var_lib_t,hald_var_lib_t) 
    8484 
     85manage_dirs_pattern(hald_t, hald_var_run_t, hald_var_run_t) 
    8586manage_files_pattern(hald_t,hald_var_run_t,hald_var_run_t) 
    86 files_pid_filetrans(hald_t,hald_var_run_t,file
     87files_pid_filetrans(hald_t, hald_var_run_t, { dir file }
    8788 
    8889kernel_read_system_state(hald_t) 
     
    9495kernel_rw_vm_sysctls(hald_t) 
    9596kernel_write_proc_files(hald_t) 
     97kernel_setsched(hald_t) 
    9698 
    9799auth_read_pam_console_data(hald_t) 
     
    120122dev_setattr_usbfs_files(hald_t) 
    121123dev_rw_power_management(hald_t) 
     124dev_read_raw_memory(hald_t) 
    122125# hal is now execing pm-suspend 
    123126dev_rw_sysfs(hald_t) 
     127dev_read_video_dev(hald_t) 
    124128 
    125129domain_use_interactive_fds(hald_t) 
     
    167171auth_use_nsswitch(hald_t) 
    168172 
     173fstools_getattr_swap_files(hald_t) 
     174 
    169175init_domtrans_script(hald_t) 
    170176init_read_utmp(hald_t) 
     
    246252 
    247253optional_policy(` 
     254        gpm_dontaudit_getattr_gpmctl(hald_t) 
     255') 
     256 
     257optional_policy(` 
    248258        hotplug_read_config(hald_t) 
    249259') 
     
    267277 
    268278optional_policy(` 
     279        podsleuth_domtrans(hald_t) 
     280') 
     281 
     282optional_policy(` 
    269283        rpc_search_nfs_state_data(hald_t) 
    270284') 
     
    293307 
    294308allow hald_acl_t self:capability { dac_override fowner }; 
    295 allow hald_acl_t self:fifo_file read_fifo_file_perms; 
     309allow hald_acl_t self:process { getattr signal }; 
     310allow hald_acl_t self:fifo_file rw_fifo_file_perms; 
    296311 
    297312domtrans_pattern(hald_t, hald_acl_exec_t, hald_acl_t) 
     
    303318files_search_var_lib(hald_acl_t) 
    304319 
     320manage_dirs_pattern(hald_acl_t, hald_var_run_t, hald_var_run_t) 
     321manage_files_pattern(hald_acl_t, hald_var_run_t, hald_var_run_t) 
     322files_pid_filetrans(hald_acl_t, hald_var_run_t, { dir file }) 
     323 
    305324corecmd_exec_bin(hald_acl_t) 
    306325 
    307326dev_getattr_all_chr_files(hald_acl_t) 
     327dev_setattr_all_chr_files(hald_acl_t) 
    308328dev_getattr_generic_usb_dev(hald_acl_t) 
    309329dev_getattr_video_dev(hald_acl_t) 
     
    340360files_search_var_lib(hald_mac_t) 
    341361 
     362kernel_read_system_state(hald_mac_t) 
     363 
     364dev_read_raw_memory(hald_mac_t) 
    342365dev_write_raw_memory(hald_mac_t) 
     366dev_read_sysfs(hald_mac_t) 
    343367 
    344368files_read_usr_files(hald_mac_t) 
     
    393417 
    394418miscfiles_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)