931d180
## <summary>thin policy</summary>
931d180
931d180
#######################################
931d180
## <summary>
931d180
##  Creates types and rules for a basic
931d180
##  thin daemon domain.
931d180
## </summary>
931d180
## <param name="prefix">
931d180
##  <summary>
931d180
##  Prefix for the domain.
931d180
##  </summary>
931d180
## </param>
931d180
#
931d180
template(`thin_domain_template',`
931d180
    gen_require(`
931d180
        attribute thin_domain;
931d180
    ')
931d180
931d180
    type $1_t, thin_domain;
931d180
    type $1_exec_t;
931d180
    init_daemon_domain($1_t, $1_exec_t)
931d180
931d180
	can_exec($1_t, $1_exec_t)
1bafb67
1bafb67
	kernel_read_system_state($1_t)
931d180
')
931d180
931d180
######################################
931d180
## <summary>
931d180
##	Execute mongod in the caller domain.
931d180
## </summary>
931d180
## <param name="domain">
931d180
##	<summary>
931d180
##	Domain allowed access.
931d180
##	</summary>
931d180
## </param>
931d180
#
931d180
interface(`thin_exec',`
931d180
    gen_require(`
931d180
	type thin_exec_t;
931d180
    ')
931d180
931d180
    can_exec($1, thin_exec_t)
931d180
')