Re: This patch cleans up a couple of crashes caused by libselinux

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

 



On 04/06/2011 04:58 PM, Daniel J Walsh wrote:
> If you fail to load_policy in the init or SELinux is disabled, you need
> to free the selinux_mnt variable and clear the memory.
> 
> systemd was calling load_polcy on a DISABLED system then later on it
> would call is_selinux_enabled() and get incorrect response, since
> selinux_mnt still had valid data.
> 
> The second bug in libselinux, resolves around calling the
> selinux_key_delete(destructor_key) if the selinux_key_create call had
> never been called.  This was causing data to be freed in other
> applications that loaded an unloaded the libselinux library but never
> setup setrans or matchpathcon.
> 

Applied in libselinux-2.0.102

Thanks!

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.


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

  Powered by Linux