selinux-refpolicy/policy/modules/system/hostname.if
Dominick Grift a0546c9d1c System layer xml fixes.
Signed-off-by: Dominick Grift <domg472@gmail.com>
2010-08-05 09:25:55 -04:00

66 lines
1.2 KiB
Plaintext

## <summary>Policy for changing the system host name.</summary>
########################################
## <summary>
## Execute hostname in the hostname domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`hostname_domtrans',`
gen_require(`
type hostname_t, hostname_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, hostname_exec_t, hostname_t)
')
########################################
## <summary>
## Execute hostname in the hostname domain, and
## allow the specified role the hostname domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
#
interface(`hostname_run',`
gen_require(`
type hostname_t;
')
hostname_domtrans($1)
role $2 types hostname_t;
')
########################################
## <summary>
## Execute hostname in the caller domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`hostname_exec',`
gen_require(`
type hostname_exec_t;
')
corecmd_search_bin($1)
can_exec($1, hostname_exec_t)
')