trunk: add sysadm_entry_spec_domtrans_to() interface from clip.
This commit is contained in:
parent
9e7a338509
commit
64daa85393
@ -114,6 +114,41 @@ interface(`sysadm_entry_spec_domtrans',`
|
||||
allow sysadm_t $1:process sigchld;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Allow sysadm to execute all entrypoint files in
|
||||
## a specified domain. This is an explicit transition,
|
||||
## requiring the caller to use setexeccon().
|
||||
## </summary>
|
||||
## <desc>
|
||||
## <p>
|
||||
## Allow sysadm to execute all entrypoint files in
|
||||
## a specified domain. This is an explicit transition,
|
||||
## requiring the caller to use setexeccon().
|
||||
## </p>
|
||||
## <p>
|
||||
## This is a interface to support third party modules
|
||||
## and its use is not allowed in upstream reference
|
||||
## policy.
|
||||
## </p>
|
||||
## </desc>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`sysadm_entry_spec_domtrans_to',`
|
||||
gen_require(`
|
||||
type sysadm_t;
|
||||
')
|
||||
|
||||
domain_entry_file_spec_domtrans(sysadm_t, $1)
|
||||
allow $1 sysadm_t:fd use;
|
||||
allow $1 sysadm_t:fifo_file rw_file_perms;
|
||||
allow $1 sysadm_t:process sigchld;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Allow sysadm to execute a generic bin program in
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
policy_module(sysadm, 2.0.0)
|
||||
policy_module(sysadm, 2.0.1)
|
||||
|
||||
########################################
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user