]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
selinux: Fix a panic in selinux_netlbl_inode_permission()
authorPaul Moore <paul.moore@hp.com>
Fri, 27 Feb 2009 20:00:03 +0000 (15:00 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 00:32:21 +0000 (17:32 -0700)
commitbeb6ec3b2a0d720bf0baa64cbafb20b2af0b1fa7
treec449eb041eeaa64dce461318492a12aa4216699c
parent04de7d2f0799c129f11a6a88869caebe0343fe7b
selinux: Fix a panic in selinux_netlbl_inode_permission()

commit d7f59dc4642ce2fc7b79fcd4ec02ffce7f21eb02 upstream.

Rick McNeal from LSI identified a panic in selinux_netlbl_inode_permission()
caused by a certain sequence of SUNRPC operations.  The problem appears to be
due to the lack of NULL pointer checking in the function; this patch adds the
pointer checks so the function will exit safely in the cases where the socket
is not completely initialized.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
security/selinux/netlabel.c