Changeset 2644

Show
Ignore:
Timestamp:
03/20/08 09:55:17 (9 months ago)
Author:
pebenito
Message:

trunk: small fixes for gentoo system.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/policy/modules/system/init.te

    r2633 r2644  
    11 
    2 policy_module(init,1.9.2
     2policy_module(init,1.9.3
    33 
    44gen_require(` 
     
    428428        seutil_read_default_contexts(initrc_t) 
    429429 
     430        # /lib/rcscripts/net/system.sh rewrites resolv.conf :( 
     431        sysnet_create_config(initrc_t) 
     432        sysnet_write_config(initrc_t) 
     433        sysnet_setattr_config(initrc_t)  
     434 
    430435        optional_policy(` 
    431436                arpwatch_manage_data_files(initrc_t) 
  • trunk/policy/modules/system/logging.fc

    r2625 r2644  
    2020/usr/sbin/syslog-ng     --      gen_context(system_u:object_r:syslogd_exec_t,s0) 
    2121/usr/sbin/syslogd       --      gen_context(system_u:object_r:syslogd_exec_t,s0) 
     22 
     23/var/lib/syslog-ng.persist --   gen_context(system_u:object_r:syslogd_var_lib_t,s0) 
    2224 
    2325ifdef(`distro_suse', ` 
  • trunk/policy/modules/system/logging.te

    r2625 r2644  
    11 
    2 policy_module(logging,1.9.1
     2policy_module(logging,1.9.2
    33 
    44######################################## 
  • trunk/policy/modules/system/sysnetwork.if

    r2352 r2644  
    204204####################################### 
    205205## <summary> 
    206 ##      Allow network init to read network config files. 
    207 ## </summary> 
    208 ## <param name="domain"> 
    209 ##      <summary> 
    210 ##      The type of the process performing this action. 
     206##      Set the attributes of network config files. 
     207## </summary> 
     208## <param name="domain"> 
     209##      <summary> 
     210##      Domain allowed access. 
     211##      </summary> 
     212## </param> 
     213
     214interface(`sysnet_setattr_config',` 
     215        gen_require(` 
     216                type net_conf_t; 
     217        ') 
     218 
     219        files_search_etc($1) 
     220        allow $1 net_conf_t:file setattr; 
     221') 
     222 
     223####################################### 
     224## <summary> 
     225##      Read network config files. 
     226## </summary> 
     227## <param name="domain"> 
     228##      <summary> 
     229##      Domain allowed access. 
    211230##      </summary> 
    212231## </param> 
     
    237256 
    238257        dontaudit $1 net_conf_t:file read_file_perms; 
     258') 
     259 
     260####################################### 
     261## <summary> 
     262##      Write network config files. 
     263## </summary> 
     264## <param name="domain"> 
     265##      <summary> 
     266##      Domain allowed access. 
     267##      </summary> 
     268## </param> 
     269# 
     270interface(`sysnet_write_config',` 
     271        gen_require(` 
     272                type net_conf_t; 
     273        ') 
     274 
     275        files_search_etc($1) 
     276        allow $1 net_conf_t:file write_file_perms; 
     277') 
     278 
     279####################################### 
     280## <summary> 
     281##      Create network config files. 
     282## </summary> 
     283## <param name="domain"> 
     284##      <summary> 
     285##      Domain allowed access. 
     286##      </summary> 
     287## </param> 
     288# 
     289interface(`sysnet_create_config',` 
     290        gen_require(` 
     291                type net_conf_t; 
     292        ') 
     293 
     294        files_search_etc($1) 
     295        allow $1 net_conf_t:file create_file_perms; 
    239296') 
    240297 
  • trunk/policy/modules/system/sysnetwork.te

    r2594 r2644  
    11 
    2 policy_module(sysnetwork,1.5.0
     2policy_module(sysnetwork,1.5.1
    33 
    44######################################## 
     
    5151allow dhcpc_t self:udp_socket create_socket_perms; 
    5252allow dhcpc_t self:packet_socket create_socket_perms; 
    53 allow dhcpc_t self:netlink_route_socket { create_socket_perms nlmsg_read }; 
     53allow dhcpc_t self:netlink_route_socket { create_socket_perms nlmsg_read nlmsg_write }; 
    5454 
    5555allow dhcpc_t dhcp_etc_t:dir list_dir_perms;