add iface creating private logs

This commit is contained in:
Chris PeBenito 2005-05-11 20:54:14 +00:00
parent b2dc7fbe30
commit fb1aee72f4
1 changed files with 19 additions and 0 deletions

View File

@ -14,6 +14,25 @@ define(`logging_make_log_file_depend',`
attribute logfile;
')
########################################
#
# logging_create_private_log(domain,privatetype,[class(es)])
#
define(`logging_create_private_log',`
requires_block_template(`$0'_depend)
allow $1 var_log_t:dir { getattr search read write add_name remove_name };
ifelse(`$3',`',`
type_transition $1 var_log_t:file $2;
',`
type_transition $1 var_log_t:$3 $2;
') dnl end ifelse
')
define(`logging_create_private_log_depend',`
type var_log_t;
class dir { getattr search read write add_name remove_name };
')
#######################################
#
# logging_send_system_log_message(domain)