2006-12-12 20:08:08 +00:00
|
|
|
#
|
|
|
|
# Specified domain transition patterns
|
|
|
|
#
|
|
|
|
define(`domain_transition_pattern',`
|
2008-10-20 16:10:42 +00:00
|
|
|
allow $1 $2:file { getattr open read execute };
|
2006-12-12 20:08:08 +00:00
|
|
|
allow $1 $3:process transition;
|
|
|
|
dontaudit $1 $3:process { noatsecure siginh rlimitinh };
|
|
|
|
')
|
|
|
|
|
|
|
|
# compatibility:
|
|
|
|
define(`domain_trans',`domain_transition_pattern($*)')
|
|
|
|
|
|
|
|
define(`spec_domtrans_pattern',`
|
|
|
|
allow $1 self:process setexec;
|
|
|
|
domain_transition_pattern($1,$2,$3)
|
|
|
|
|
|
|
|
allow $3 $1:fd use;
|
2010-08-26 13:41:21 +00:00
|
|
|
allow $3 $1:fifo_file rw_inherited_fifo_file_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow $3 $1:process sigchld;
|
|
|
|
')
|
|
|
|
|
|
|
|
#
|
|
|
|
# Automatic domain transition patterns
|
|
|
|
#
|
|
|
|
define(`domain_auto_transition_pattern',`
|
|
|
|
domain_transition_pattern($1,$2,$3)
|
|
|
|
type_transition $1 $2:process $3;
|
|
|
|
')
|
|
|
|
|
|
|
|
# compatibility:
|
|
|
|
define(`domain_auto_trans',`domain_auto_transition_pattern($*)')
|
|
|
|
|
|
|
|
define(`domtrans_pattern',`
|
|
|
|
domain_auto_transition_pattern($1,$2,$3)
|
|
|
|
|
|
|
|
allow $3 $1:fd use;
|
2010-08-26 13:41:21 +00:00
|
|
|
allow $3 $1:fifo_file rw_inherited_fifo_file_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow $3 $1:process sigchld;
|
2010-08-26 13:41:21 +00:00
|
|
|
|
|
|
|
ifdef(`hide_broken_symptoms', `
|
|
|
|
dontaudit $3 $1:socket_class_set { read write };
|
|
|
|
')
|
2006-12-12 20:08:08 +00:00
|
|
|
')
|
|
|
|
|
2010-04-26 19:15:23 +00:00
|
|
|
#
|
|
|
|
# Dynamic transition pattern
|
|
|
|
#
|
|
|
|
define(`dyntrans_pattern',`
|
|
|
|
allow $1 self:process setcurrent;
|
|
|
|
allow $1 $2:process dyntransition;
|
|
|
|
allow $2 $1:process sigchld;
|
|
|
|
')
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
#
|
|
|
|
# Other process permissions
|
|
|
|
#
|
|
|
|
define(`send_audit_msgs_pattern',`
|
2007-06-12 18:46:14 +00:00
|
|
|
refpolicywarn(`$0($*) has been deprecated, please use logging_send_audit_msgs($1) instead.')
|
2006-12-12 20:08:08 +00:00
|
|
|
allow $1 self:capability audit_write;
|
|
|
|
allow $1 self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`ps_process_pattern',`
|
2008-10-20 16:10:42 +00:00
|
|
|
allow $1 $2:dir list_dir_perms;
|
|
|
|
allow $1 $2:file read_file_perms;
|
|
|
|
allow $1 $2:lnk_file read_lnk_file_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow $1 $2:process getattr;
|
|
|
|
')
|