On Wed, Jul 09, 2014 at 01:05:09PM -0400, Stephen Smalley wrote: > >> The issue came up again in the context of cross-compiling in: > >> http://marc.info/?t=139275881100002&r=1&w=2 > >> and there was a willingness to add a version but I don't think anyone > >> proposed a patch to do so. But even with the version, using the PCRE > >> version effectively just means that you'll need to regenerate on each > >> new library version anyway, right? So what do we gain versus the > >> current approach of regenerating on pcre updates? > > > > There's a small period between the pcre upgrade and the selinux-policy > > update in which we'll get these failures again (and in Gentoo, the > > installation of selinux-policy will fail because a relabeling operation on > > the files would occur which will segfault - but that's something we need to > > tackle in Gentoo). > > I see. How about the attached patch then? The patch works fine, thanks. Tested with libselinux-2.3, and pcre 8.33 / 8.35. I timed the difference of setfiles commands to "acknowledge" that the .bin files were ignored when they needed to (longer duration means regular context files are used instead of .bin files). Wkr, Sven Vermeulen _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.