simplify since alias take care of it
This commit is contained in:
parent
10b1f324d5
commit
ae1d9afb5b
|
@ -1815,26 +1815,6 @@ interface(`userdom_dontaudit_list_sysadm_home_dir',`
|
||||||
## </param>
|
## </param>
|
||||||
#
|
#
|
||||||
interface(`userdom_create_sysadm_home',`
|
interface(`userdom_create_sysadm_home',`
|
||||||
ifdef(`targeted_policy',`
|
|
||||||
gen_require(`
|
|
||||||
type user_home_dir_t, user_home_t;
|
|
||||||
')
|
|
||||||
|
|
||||||
allow $1 user_home_dir_t:dir rw_dir_perms;
|
|
||||||
ifelse(`$2',`',`
|
|
||||||
ifelse(`$3',`',`
|
|
||||||
type_transition $1 user_home_dir_t:file user_home_t;
|
|
||||||
',`
|
|
||||||
type_transition $1 user_home_dir_t:$3 user_home_t;
|
|
||||||
')
|
|
||||||
',`
|
|
||||||
ifelse(`$3',`',`
|
|
||||||
type_transition $1 user_home_dir_t:file $2;
|
|
||||||
',`
|
|
||||||
type_transition $1 user_home_dir_t:$3 $2;
|
|
||||||
')
|
|
||||||
')
|
|
||||||
',`
|
|
||||||
gen_require(`
|
gen_require(`
|
||||||
type sysadm_home_dir_t, sysadm_home_t;
|
type sysadm_home_dir_t, sysadm_home_t;
|
||||||
')
|
')
|
||||||
|
@ -1855,7 +1835,6 @@ interface(`userdom_create_sysadm_home',`
|
||||||
')
|
')
|
||||||
')
|
')
|
||||||
')
|
')
|
||||||
')
|
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
|
@ -1866,21 +1845,12 @@ interface(`userdom_create_sysadm_home',`
|
||||||
## </param>
|
## </param>
|
||||||
#
|
#
|
||||||
interface(`userdom_search_sysadm_home_subdirs',`
|
interface(`userdom_search_sysadm_home_subdirs',`
|
||||||
ifdef(`targeted_policy',`
|
|
||||||
gen_require(`
|
|
||||||
type user_home_dir_t, user_home_t;
|
|
||||||
')
|
|
||||||
|
|
||||||
allow $1 { user_home_dir_t user_home_t }:dir search_dir_perms;
|
|
||||||
|
|
||||||
',`
|
|
||||||
gen_require(`
|
gen_require(`
|
||||||
type sysadm_home_dir_t, sysadm_home_t;
|
type sysadm_home_dir_t, sysadm_home_t;
|
||||||
')
|
')
|
||||||
|
|
||||||
allow $1 { sysadm_home_dir_t sysadm_home_t }:dir search_dir_perms;
|
allow $1 { sysadm_home_dir_t sysadm_home_t }:dir search_dir_perms;
|
||||||
')
|
')
|
||||||
')
|
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
|
|
Loading…
Reference in New Issue