Interfaces, ports, booleans - record conversion fn
- 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
@@ -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