Chris PeBenito 6bb0da
## <summary>Myapp example policy</summary>
Chris PeBenito 6bb0da
## <desc>
Chris PeBenito 6bb0da
##	

Chris PeBenito 85bec1
##		More descriptive text about myapp.  The desc
Chris PeBenito 85bec1
##		tag can also use p, ul, and ol
Chris PeBenito 6bb0da
##		html tags for formatting.
Chris PeBenito 6bb0da
##	

Chris PeBenito 6bb0da
##	

Chris PeBenito 6bb0da
##		This policy supports the following myapp features:
Chris PeBenito 6bb0da
##		
    Chris PeBenito 6bb0da
    ##		
  • Feature A
  • Chris PeBenito 6bb0da
    ##		
  • Feature B
  • Chris PeBenito 6bb0da
    ##		
  • Feature C
  • Chris PeBenito 6bb0da
    ##		
    Chris PeBenito 6bb0da
    ##	

    Chris PeBenito 6bb0da
    ## </desc>
    Chris PeBenito 6bb0da
    #
    Chris PeBenito 6bb0da
    Chris PeBenito 6bb0da
    ########################################
    Chris PeBenito 6bb0da
    ## <summary>
    Chris PeBenito 6bb0da
    ##	Execute a domain transition to run myapp.
    Chris PeBenito 6bb0da
    ## </summary>
    Chris PeBenito 6bb0da
    ## <param name="domain">
    Chris PeBenito 85bec1
    ##	<summary>
    Chris PeBenito 6bb0da
    ##	Domain allowed to transition.
    Chris PeBenito 85bec1
    ##	</summary>
    Chris PeBenito 6bb0da
    ## </param>
    Chris PeBenito 6bb0da
    #
    Chris PeBenito 6bb0da
    interface(`myapp_domtrans',`
    Chris PeBenito 884e3b
    	gen_require(`
    Chris PeBenito 6bb0da
    		type myapp_t, myapp_exec_t;
    Chris PeBenito 6bb0da
    	')
    Chris PeBenito 6bb0da
    Chris PeBenito 85bec1
    	domtrans_pattern($1,myapp_exec_t,myapp_t)
    Chris PeBenito 6bb0da
    ')
    Chris PeBenito 6bb0da
    Chris PeBenito 6bb0da
    ########################################
    Chris PeBenito 6bb0da
    ## <summary>
    Chris PeBenito 6bb0da
    ##	Read myapp log files.
    Chris PeBenito 6bb0da
    ## </summary>
    Chris PeBenito 6bb0da
    ## <param name="domain">
    Chris PeBenito 85bec1
    ##	<summary>
    Chris PeBenito 6bb0da
    ##	Domain allowed to read the log files.
    Chris PeBenito 85bec1
    ##	</summary>
    Chris PeBenito 6bb0da
    ## </param>
    Chris PeBenito 6bb0da
    #
    Chris PeBenito 6bb0da
    interface(`myapp_read_log',`
    Chris PeBenito 884e3b
    	gen_require(`
    Chris PeBenito 6bb0da
    		type myapp_log_t;
    Chris PeBenito 6bb0da
    	')
    Chris PeBenito 6bb0da
    Chris PeBenito 6bb0da
    	logging_search_logs($1)
    Chris PeBenito 85bec1
    	allow $1 myapp_log_t:file read_file_perms;
    Chris PeBenito 6bb0da
    ')