2005-06-01 19:17:13 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Helper macros
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# shiftn(num,list...)
|
|
|
|
#
|
|
|
|
# shift the list num times
|
|
|
|
#
|
|
|
|
define(`shiftn',`ifelse($1,0,`shift($*)',`shiftn(decr($1),shift(shift($*)))')')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# context_template(context,sensitivity)
|
|
|
|
#
|
|
|
|
# Optionally put the sensitivity for the file
|
|
|
|
#
|
|
|
|
define(`context_template',`ifdef(`enable_mls',`$1:$2',`$1')') dnl
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# user_mls(level,range)
|
|
|
|
#
|
|
|
|
define(`user_mls',`ifdef(`enable_mls',`level $1 range $2')') dnl
|
|
|
|
|
2005-06-08 13:41:05 +00:00
|
|
|
define(`can_exec',`allow $1 $2:file { getattr read execute execute_no_trans };')
|