From e3fd778b8fa8d2fa5941a6c83a38ee81d7e6001f Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Jun 09 2005 23:06:07 +0000 Subject: add can_exec --- diff --git a/refpolicy/policy/support/misc_macros.spt b/refpolicy/policy/support/misc_macros.spt index 37f25d9..148e545 100644 --- a/refpolicy/policy/support/misc_macros.spt +++ b/refpolicy/policy/support/misc_macros.spt @@ -18,3 +18,5 @@ define(`shiftn',`ifelse($1,0,`shift($*)',`shiftn(decr($1),shift(shift($*)))')') # Optionally put the sensitivity for the file # define(`context_template',`ifdef(`enable_mls',`$1:$2',`$1')') dnl + +define(`can_exec',`allow $1 $2:file { getattr read execute execute_no_trans };')