selinux-policy/refpolicy/policy/support/misc_macros.spt

23 lines
464 B
Cheetah
Raw Normal View History

########################################
#
# Helper macros
#
#
# shiftn(num,list...)
#
# shift the list num times
#
define(`shiftn',`ifelse($1,0,`shift($*)',`shiftn(decr($1),shift(shift($*)))')')
########################################
#
# gen_con(context,sensitivity)
#
# Optionally put the sensitivity for the file
#
define(`context_template',`ifdef(`enable_mls',`$1:$2',`$1')') dnl
2005-06-09 23:06:07 +00:00
2005-06-10 01:00:48 +00:00
define(`can_exec',`allow $1 $2:file { rx_file_perms execute_no_trans };')