Skip to contentSkip to conversation

Interfaces, ports, booleans - record conversion fn

SEPOL 3 Ivan Gyurdiev 1 participant 1 message Oct 22, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

- renames sepol_[iface/port]_struct_create functions to _from_record, which reflects what they do better.
- removes the sepol prefix from those functions - they are both internal, and marked static (if this is a namespace problem - will address in followup patch, along with the other patches that did the same thing). This is now consistent w/ context_to/from record
- moves code from iterate into _to_record() functions that will be shared with query, and other things that need to make a record.
- renames boolean _load() functions to _set().

libsepol/include/sepol/booleans.h +2 -2
diff -Naurp --exclude CVS --exclude ChangeLog --exclude VERSION --exclude policy_components.c --exclude '*_record.c' --exclude '*_record.h' --exclude libsemanage.map --exclude 'module_record*' --exclude 'database_directory*' old/libsepol/include/sepol/booleans.h new/libsepol/include/sepol/booleans.h
@@ -28,12 +28,12 @@ extern int sepol_genbools_array(
 /*---------------end compatbility------------*/
 
 /* Load a boolean into the policy */
-extern int sepol_bool_load (
+extern int sepol_bool_set (
 	sepol_policydb_t* policydb, 
 	sepol_bool_t* boolean);
 
 /* Load a boolean array into the policy */
-extern int sepol_bool_load_array(
+extern int sepol_bool_set_array(
 	sepol_policydb_t* policydb,
 	sepol_bool_t** bool_arr,
 	size_t bool_arr_len);
libsepol/src/booleans.c +37 -13

79 lines not on this page · raw message

libsepol/src/interfaces.c +51 -31

149 lines not on this page · raw message

libsepol/src/ports.c +43 -24

114 lines not on this page · raw message