Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 16cd90bf958653721d23a307afa26f55 > files > 3

ladvd-selinux-0.9.2-1.fc14.x86_64.rpm


## <summary>policy for ladvd</summary>

########################################
## <summary>
##	Execute a domain transition to run ladvd.
## </summary>
## <param name="domain">
## <summary>
##	Domain allowed to transition.
## </summary>
## </param>
#
interface(`ladvd_domtrans',`
	gen_require(`
		type ladvd_t;
                type ladvd_exec_t;
	')

	domtrans_pattern($1,ladvd_exec_t,ladvd_t)
')


########################################
## <summary>
##	Execute ladvd server in the ladvd domain.
## </summary>
## <param name="domain">
##	<summary>
##	The type of the process performing this action.
##	</summary>
## </param>
#
interface(`ladvd_script_domtrans',`
	gen_require(`
		type ladvd_script_exec_t;
	')

	init_script_domtrans_spec($1,ladvd_script_exec_t)
')

########################################
## <summary>
##	All of the rules required to administrate 
##	an ladvd environment
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
## <param name="role">
##	<summary>
##	The role to be allowed to manage the ladvd domain.
##	</summary>
## </param>
## <param name="terminal">
##	<summary>
##	The type of the user terminal.
##	</summary>
## </param>
## <rolecap/>
#
interface(`ladvd_admin',`
	gen_require(`
		type ladvd_t;
	')

	allow $1 ladvd_t:process { ptrace signal_perms getattr };
	read_files_pattern($1, ladvd_t, ladvd_t)
	        

	gen_require(`
		type ladvd_script_exec_t;
	')

	# Allow ladvd_t to restart the apache service
	ladvd_script_domtrans($1)
	domain_system_change_exemption($1)
	role_transition $2 ladvd_script_exec_t system_r;
	allow $2 system_r;

')