selinux-policy/refpolicy/doc/example.te

30 lines
493 B
Plaintext
Raw Normal View History

2006-02-01 13:09:09 +00:00
policy_module(myapp,1.0.0)
########################################
#
# Declarations
#
type myapp_t;
type myapp_exec_t;
domain_type(myapp_t)
domain_entry_file(myapp_t, myapp_exec_t)
type myapp_log_t;
logging_log_file(myapp_log_t)
type myapp_tmp_t;
files_tmp_file(myapp_tmp_t)
########################################
#
# Myapp local policy
#
allow myapp_t myapp_log_t:file ra_file_perms;
allow myapp_t myapp_tmp_t:file manage_file_perms;
files_filetrans_tmp(myapp_t,myapp_tmp_t,file)