Changeset 2780

Show
Ignore:
Timestamp:
08/14/08 09:19:50 (3 months ago)
Author:
cpebenito
Message:

trunk: 6 patches from the fedora policy, cherry picked by david hardeman.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/policy/modules/admin/bootloader.if

    r2763 r2780  
    5050        role $2 types bootloader_t; 
    5151        allow bootloader_t $3:chr_file rw_term_perms; 
     52 
     53        ifdef(`distro_redhat',` 
     54                # for mke2fs 
     55                mount_run(bootloader_t, $2, $3) 
     56        ') 
    5257') 
    5358 
  • trunk/policy/modules/admin/bootloader.te

    r2763 r2780  
    11 
    2 policy_module(bootloader, 1.8.0
     2policy_module(bootloader, 1.8.1
    33 
    44######################################## 
     
    173173        # for mke2fs 
    174174        mount_domtrans(bootloader_t) 
     175 
     176        optional_policy(` 
     177                unconfined_domain(bootloader_t) 
     178        ') 
    175179') 
    176180 
  • trunk/policy/modules/admin/kudzu.te

    r2763 r2780  
    11 
    2 policy_module(kudzu, 1.6.0
     2policy_module(kudzu, 1.6.1
    33 
    44######################################## 
     
    144144 
    145145optional_policy(` 
    146         # cjp: this was originally in the else block 
    147         # of ifdef userhelper.te, but it seems to 
    148         # make more sense here.  also, require 
    149         # blocks curently do not work in the 
    150         # else block of optionals 
     146        unconfined_domtrans(kudzu_t) 
    151147        unconfined_domain(kudzu_t) 
    152148') 
    153  
    154 ifdef(`TODO',` 
    155 allow kudzu_t modules_conf_t:file unlink; 
    156 optional_policy(` 
    157         allow kudzu_t printconf_t:file { getattr read }; 
    158 ') 
    159 optional_policy(` 
    160         allow kudzu_t xserver_exec_t:file getattr; 
    161 ') 
    162 optional_policy(` 
    163         allow kudzu_t rhgb_t:unix_stream_socket connectto; 
    164 ') 
    165 optional_policy(` 
    166         role system_r types sysadm_userhelper_t; 
    167         domain_auto_trans(kudzu_t, userhelper_exec_t, sysadm_userhelper_t) 
    168 ') 
    169 allow kudzu_t cupsd_rw_etc_t:dir list_dir_perms; 
    170 ') 
  • trunk/policy/modules/services/courier.fc

    r1715 r2780  
    2020 
    2121/var/run/courier(/.*)?                  --      gen_context(system_u:object_r:courier_var_run_t,s0) 
     22 
     23/var/spool/courier(/.*)?                        gen_context(system_u:object_r:courier_spool_t,s0) 
  • trunk/policy/modules/services/courier.if

    r2763 r2780  
    124124        domtrans_pattern($1, courier_pop_exec_t, courier_pop_t) 
    125125') 
     126 
     127######################################## 
     128## <summary> 
     129##      Read courier config files 
     130## </summary> 
     131## <param name="prefix"> 
     132##      <summary> 
     133##      Domain allowed access. 
     134##      </summary> 
     135## </param> 
     136# 
     137interface(`courier_read_config',` 
     138        gen_require(` 
     139                type courier_etc_t; 
     140        ') 
     141 
     142        read_files_pattern($1, courier_etc_t, courier_etc_t) 
     143') 
     144 
     145######################################## 
     146## <summary> 
     147##      Create, read, write, and delete courier 
     148##      spool directories. 
     149## </summary> 
     150## <param name="prefix"> 
     151##      <summary> 
     152##      Domain allowed access. 
     153##      </summary> 
     154## </param> 
     155# 
     156interface(`courier_manage_spool_dirs',` 
     157        gen_require(` 
     158                type courier_spool_t; 
     159        ') 
     160 
     161        manage_dirs_pattern($1, courier_spool_t, courier_spool_t) 
     162') 
     163 
     164######################################## 
     165## <summary> 
     166##      Create, read, write, and delete courier 
     167##      spool files. 
     168## </summary> 
     169## <param name="prefix"> 
     170##      <summary> 
     171##      Domain allowed access. 
     172##      </summary> 
     173## </param> 
     174# 
     175interface(`courier_manage_spool_files',` 
     176        gen_require(` 
     177                type courier_spool_t; 
     178        ') 
     179 
     180        manage_files_pattern($1, courier_spool_t, courier_spool_t) 
     181') 
     182 
     183######################################## 
     184## <summary> 
     185##      Read and write to courier spool pipes. 
     186## </summary> 
     187## <param name="domain"> 
     188##      <summary> 
     189##      Domain to not audit. 
     190##      </summary> 
     191## </param> 
     192# 
     193interface(`courier_rw_spool_pipes',` 
     194        gen_require(` 
     195                type courier_spool_t; 
     196        ') 
     197 
     198        allow $1 courier_spool_t:fifo_file rw_fifo_file_perms; 
     199') 
  • trunk/policy/modules/services/courier.te

    r2763 r2780  
    11 
    2 policy_module(courier, 1.5.0
     2policy_module(courier, 1.5.1
    33 
    44######################################## 
     
    1010 
    1111type courier_etc_t; 
    12 files_type(courier_etc_t) 
     12files_config_file(courier_etc_t) 
    1313 
    1414courier_domain_template(pcp) 
    1515 
    1616courier_domain_template(pop) 
     17 
     18type courier_spool_t; 
     19files_type(courier_spool_t) 
    1720 
    1821courier_domain_template(tcpd) 
  • trunk/policy/modules/services/rdisc.te

    r2763 r2780  
    11 
    2 policy_module(rdisc, 1.5.0
     2policy_module(rdisc, 1.5.1
    33 
    44######################################## 
     
    4848logging_send_syslog_msg(rdisc_t) 
    4949 
     50miscfiles_read_localization(rdisc_t) 
     51 
    5052sysnet_read_config(rdisc_t) 
    5153 
  • trunk/policy/modules/services/rpc.te

    r2763 r2780  
    11 
    2 policy_module(rpc, 1.8.0
     2policy_module(rpc, 1.8.1
    33 
    44######################################## 
     
    6363# rpc.statd executes sm-notify 
    6464can_exec(rpcd_t, rpcd_exec_t) 
    65 corecmd_search_bin(rpcd_t) 
    6665 
    6766kernel_read_system_state(rpcd_t)  
    68 kernel_search_network_state(rpcd_t)  
     67kernel_read_network_state(rpcd_t) 
    6968# for rpc.rquotad 
    7069kernel_read_sysctl(rpcd_t)   
    7170kernel_rw_fs_sysctls(rpcd_t) 
     71 
     72corecmd_exec_bin(rpcd_t) 
     73 
     74files_manage_mounttab(rpcd_t) 
    7275 
    7376fs_list_rpc(rpcd_t) 
     
    7578fs_read_rpc_symlinks(rpcd_t) 
    7679fs_read_rpc_sockets(rpcd_t)  
    77 term_use_controlling_term(rpcd_t) 
    7880 
    79 # cjp: this should really have its own type 
    80 files_manage_mounttab(rpcd_t) 
     81selinux_dontaudit_read_fs(rpcd_t) 
    8182 
    8283miscfiles_read_certs(rpcd_t) 
     
    105106corenet_udp_bind_all_rpc_ports(nfsd_t) 
    106107 
    107 fs_mount_nfsd_fs(nfsd_t)  
    108 fs_search_nfsd_fs(nfsd_t)  
    109 fs_getattr_all_fs(nfsd_t)  
    110 fs_rw_nfsd_fs(nfsd_t)  
    111  
    112 term_use_controlling_term(nfsd_t)  
     108dev_dontaudit_getattr_all_blk_files(nfsd_t) 
     109dev_dontaudit_getattr_all_chr_files(nfsd_t) 
     110dev_rw_lvm_control(nfsd_t) 
    113111 
    114112# does not really need this, but it is easier to just allow it 
     
    118116# cjp: this should really have its own type 
    119117files_manage_mounttab(rpcd_t) 
     118 
     119fs_mount_nfsd_fs(nfsd_t)  
     120fs_search_nfsd_fs(nfsd_t)  
     121fs_getattr_all_fs(nfsd_t)  
     122fs_getattr_all_dirs(nfsd_t) 
     123fs_rw_nfsd_fs(nfsd_t)  
     124 
     125storage_dontaudit_read_fixed_disk(nfsd_t) 
    120126 
    121127# Read access to public_content_t and public_content_rw_t 
     
    150156files_tmp_filetrans(gssd_t, gssd_tmp_t, { file dir }) 
    151157 
     158kernel_read_system_state(gssd_t) 
    152159kernel_read_network_state(gssd_t) 
    153160kernel_read_network_state_symlinks(gssd_t)       
     
    162169files_list_tmp(gssd_t)  
    163170files_read_usr_symlinks(gssd_t)  
     171 
     172auth_use_nsswitch(gssd_t) 
    164173 
    165174miscfiles_read_certs(gssd_t) 
  • trunk/policy/modules/system/getty.fc

    r1933 r2780  
    99/var/run/mgetty\.pid.*  --      gen_context(system_u:object_r:getty_var_run_t,s0) 
    1010 
    11 /var/spool/fax         --     gen_context(system_u:object_r:getty_var_run_t,s0) 
    12 /var/spool/voice       --     gen_context(system_u:object_r:getty_var_run_t,s0) 
     11/var/spool/fax(/.*)?          gen_context(system_u:object_r:getty_var_run_t,s0) 
     12/var/spool/voice(/.*)?        gen_context(system_u:object_r:getty_var_run_t,s0) 
  • trunk/policy/modules/system/getty.te

    r2656 r2780  
    11 
    2 policy_module(getty,1.6.0
     2policy_module(getty, 1.6.1
    33 
    44######################################## 
     
    1010type getty_exec_t; 
    1111init_domain(getty_t,getty_exec_t) 
     12init_system_domain(getty_t, getty_exec_t) 
    1213domain_interactive_fd(getty_t) 
    1314