## 
Myapp example policy
## <desc>
##	
##		More descriptive text about myapp.  The <desc>
##		tag can also use 
, 
, and <ol>
##		html tags for formatting.
##	
##	
##		This policy supports the following myapp features:
##		
##		
- Feature A
##		
- Feature B
##		
- Feature C
##		
##	
## </desc>
#

########################################
## 
##	Execute a domain transition to run myapp.
## 
## 
##	Domain allowed to transition.
## 
#
interface(`myapp_domtrans',`
	gen_require(`
		type myapp_t, myapp_exec_t;
	')

	domain_auto_trans($1,myapp_exec_t,myapp_t)

	allow $1 myapp_t:fd use;
	allow myapp_t $1:fd use;
	allow $1 myapp_t:fifo_file rw_file_perms;
	allow $1 myapp_t:process sigchld;
')

########################################
## 
##	Read myapp log files.
## 
## 
##	Domain allowed to read the log files.
## 
#
interface(`myapp_read_log',`
	gen_require(`
		type myapp_log_t;
	')

	logging_search_logs($1)
	allow $1 myapp_log_t:file r_file_perms;
')

# arch-tag: e3624959-d1f4-4546-850b-4a1f22f7018d
