Re: [PATCH] selinux: Fix an uninitialized variable BUG/panic in selinux_secattr_to_sid()

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

 



On Fri, 3 Oct 2008, Paul Moore wrote:

> At some point during the 2.6.27 development cycle two new fields were added
> to the SELinux context structure, a string pointer and a length field.  The
> code in selinux_secattr_to_sid() was not modified and as a result these two
> fields were left uninitialized which could result in erratic behavior,
> including kernel panics, when NetLabel is used.  This patch fixes the
> problem by fully initializing the context in selinux_secattr_to_sid() before
> use and reducing the level of direct context manipulation done to help
> prevent future problems.
> 
> Please apply this to the 2.6.27-rcX release stream.
> 
> Signed-off-by: Paul Moore <paul.moore@xxxxxx>


Applied to:
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next

-- 
James Morris
<jmorris@xxxxxxxxx>

--
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