[selinux-policy: 272/3172] more tunable work

Daniel J Walsh dwalsh at fedoraproject.org
Thu Oct 7 19:28:25 UTC 2010


commit ddea18b0ad4e3b29d3c5cd3e2f98f25b5e991477
Author: Chris PeBenito <cpebenito at tresys.com>
Date:   Tue Jun 7 22:26:39 2005 +0000

    more tunable work

 refpolicy/policy/support/loadable_module.spt |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/refpolicy/policy/support/loadable_module.spt b/refpolicy/policy/support/loadable_module.spt
index ad26530..4520282 100644
--- a/refpolicy/policy/support/loadable_module.spt
+++ b/refpolicy/policy/support/loadable_module.spt
@@ -44,6 +44,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
 #
 define(`tunable_policy',`


More information about the scm-commits mailing list