patch to add a missing interface in the sysnetwork module

This patch adds a new interface to the sysnetwork module so
that the DHCP client state directories can be searched.
This commit is contained in:
Guido Trentalancia 2011-02-16 07:33:46 +01:00 committed by Chris PeBenito
parent 18e37223df
commit f39eeece2f
1 changed files with 20 additions and 0 deletions

View File

@ -213,6 +213,26 @@ interface(`sysnet_rw_dhcp_config',`
allow $1 dhcp_etc_t:file rw_file_perms; allow $1 dhcp_etc_t:file rw_file_perms;
') ')
########################################
## <summary>
## Search the DHCP client state
## directories.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`sysnet_search_dhcpc_state',`
gen_require(`
type dhcpc_state_t;
')
files_search_var_lib($1)
allow $1 dhcpc_state_t:dir search_dir_perms;
')
######################################## ########################################
## <summary> ## <summary>
## Read dhcp client state files. ## Read dhcp client state files.