From ddea18b0ad4e3b29d3c5cd3e2f98f25b5e991477 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Tue, 7 Jun 2005 22:26:39 +0000 Subject: [PATCH] more tunable work --- refpolicy/policy/support/loadable_module.spt | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/refpolicy/policy/support/loadable_module.spt b/refpolicy/policy/support/loadable_module.spt index ad265302..4520282f 100644 --- a/refpolicy/policy/support/loadable_module.spt +++ b/refpolicy/policy/support/loadable_module.spt @@ -42,6 +42,28 @@ define(`optional_policy',` ') ') +############################## +# +# Determine if we should use the default +# tunable value as specified by the policy +# or if the override value should be used +# +define(`deflt_or_overr',`ifdef(`$1',$1,$2)') + +############################## +# +# Tunable declaration +# +define(`tunable_def',` + ifdef(`monolithic_policy',` + bool $1 deflt_or_overr(`$1'_conf,$2); + ',` + # loadable module tunable + # declaration will go here + # for $1 $2 + ') +') + ############################## # # Tunable policy handling