From: Steve Lawrence <slawrence@tresys.com>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: SELinux <selinux@tycho.nsa.gov>
Subject: Re: This patch cleans up a couple of crashes caused by libselinux
Date: Tue, 12 Apr 2011 09:33:56 -0400 [thread overview]
Message-ID: <4DA454C4.4050709@tresys.com> (raw)
In-Reply-To: <4D9CD3F5.9080002@redhat.com>
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@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
prev parent reply other threads:[~2011-04-12 13:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-06 20:58 This patch cleans up a couple of crashes caused by libselinux Daniel J Walsh
2011-04-12 13:33 ` Steve Lawrence [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DA454C4.4050709@tresys.com \
--to=slawrence@tresys.com \
--cc=dwalsh@redhat.com \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.