## auto-build policy
##
##
## More descriptive text about auto-build. The desc
## tag can also use p, ul, and ol
## html tags for formatting.
##
##
## This policy supports the following autobuild features:
##
## - Feature A
## - Feature B
## - Feature C
##
##
##
########################################
##
## Execute a domain transition to run auto-build.
##
##
##
## Domain allowed to transition.
##
##
interface(`autobuild_domtrans',`
gen_requires(`
type autobuild_t, autobuild_exec_t;
')
domain_auto_trans($1,autobuild_exec_t,autobuild_t)
allow $1 autobuild_t:fd use;
allow $1 autobuild_t:fifo_file rw_file_perms;
allow $1 autobuild_t:process sigchld;
')
########################################
##
## Read autobuild log files.
##
##
##
## Domain allowed to read the log files.
##
##
interface(`autobuild_read_log',`
gen_requires(`
type autobuild_log_t;
')
logging_search_logs($1)
allow $1 autobuild_log_t:file r_file_perms;
')