Re: [PATCH V2] libselinux: Enhance file context support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





>>  +int compat_validate(struct selabel_handle __attribute__((unused)) *rec,
>>  +        struct selabel_lookup_rec  __attribute__((unused)) *contexts,
>>  +        const char  __attribute__((unused)) *path,
>>  +        unsigned  __attribute__((unused)) lineno)
>>  +{
>>  +    return 0;
>>  +}
> 
> Looked into why you couldn't just use the original approach here, and
> realized that we are linking sefcontext_compile with static libselinux
> in Android, shared libselinux upstream.  Also realized that your
> read_spec_entries function was being accidentally exported to shared
> library users, and that also is relied upon by sefcontext_compile.
> Given that sefcontext_compile depends on libselinux internal structures,
> I can't see a reason to not have it link with the static libselinux, so
> I just switched it upstream to do so (and hid read_spec_entries).  So
> now you ought to be able to go back to the prior approach, which seemed
> cleaner.

Thanks for this fix as I just could not get around it. I'm just testing
with the original callback. Once you are happy I'll apply all the
updates you've highlighted to the Android version.
_______________________________________________
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.



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux