[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LRH.1.10.0809051852460.2526@tundra.namei.org>
Date: Fri, 5 Sep 2008 18:53:11 +1000 (EST)
From: James Morris <jmorris@...ei.org>
To: Paul Moore <paul.moore@...com>
cc: selinux@...ho.nsa.gov, netdev@...r.kernel.org,
linux-security-module@...r.kernel.org
Subject: Re: [RFC PATCH v4 03/14] selinux: Fix a problem in
security_netlbl_sid_to_secattr()
On Tue, 2 Sep 2008, Paul Moore wrote:
> Currently when SELinux fails to allocate memory in
> security_netlbl_sid_to_secattr() the NetLabel LSM domain field is set to
> NULL which triggers the default NetLabel LSM domain mapping which may not
> always be the desired mapping. This patch fixes this by returning an error
> when the kernel is unable to allocate memory. This could result in more
> failures on a system with heavy memory pressure but it is the "correct"
> thing to do.
>
> Signed-off-by: Paul Moore <paul.moore@...com>
Acked-by: James Morris <jmorris@...ei.org>
--
James Morris
<jmorris@...ei.org>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists