Skip to contentSkip to conversation

Active dbase: missed handle.h changes

SEMANAGE Ivan Gyurdiev 1 participant 1 message Dec 23, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

I need to work on reducing my exclusion list...

libsemanage/src/handle.h +8 -1
diff -Naurp --exclude-from excludes old/libsemanage/src/handle.h new/libsemanage/src/handle.h
@@ -76,7 +76,7 @@ struct semanage_handle {
 	struct semanage_policy_table* funcs;
 
 	/* Object databases */
-#define DBASE_COUNT      9
+#define DBASE_COUNT      10
 
 #define DBASE_LOCAL_USERS       0
 #define DBASE_LOCAL_PORTS       1
@@ -88,6 +88,8 @@ struct semanage_handle {
 #define DBASE_POLICY_PORTS      6
 #define DBASE_POLICY_INTERFACES 7
 #define DBASE_POLICY_BOOLEANS   8
+
+#define DBASE_ACTIVE_BOOLEANS   9
 	dbase_config_t dbase[DBASE_COUNT];
 };
 
@@ -136,5 +138,10 @@ dbase_config_t* semanage_bool_dbase_poli
 	return &handle->dbase[DBASE_POLICY_BOOLEANS];
 }
 
+static inline
+dbase_config_t* semanage_bool_dbase_active(semanage_handle_t* handle) {
+	return &handle->dbase[DBASE_ACTIVE_BOOLEANS];
+}
+
 #endif