expand type set fixes
PATCH 3/10 expand type set fixes
Expand type set was previously expanding a typeset to an ebitmap, and then converting the resulting ebitmap to the out policy. This doesn't work anymore since the linked copy doesn't have the aggregated attribute sets so the typeset needs to be converted and then expanded to an ebitmap with the expanded policy.
libsepol/include/sepol/policydb/expand.h +1 -0
@@ -32,6 +32,7 @@extern int expand_module (sepol_handle_t *handle,policydb_t *base,policydb_t *out,int verbose,int check); +extern int convert_type_ebitmap (ebitmap_t *src,ebitmap_t *dst,uint32_t *typemap);extern int expand_convert_type_set (policydb_t *p,uint32_t *typemap,type_set_t *set,ebitmap_t *types,unsigned char alwaysexpand);extern int type_set_expand (type_set_t *set,ebitmap_t *t,policydb_t *p,unsigned char alwaysexpand);extern int role_set_expand (role_set_t *x,ebitmap_t *r,policydb_t *p);
libsepol/src/expand.c +54 -54
219 lines not on this page · raw message
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.