]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.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)
committerJames Morris <jmorris@namei.org>
Sun, 1 Mar 2009 22:30:04 +0000 (09:30 +1100)
commitd7f59dc4642ce2fc7b79fcd4ec02ffce7f21eb02
tree1557550ed6478a38cc04ad480a5977580d97b5cd
parent778ef1e6cbb049c9bcbf405936ee6f2b6e451892
selinux: Fix a panic in selinux_netlbl_inode_permission()

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>
security/selinux/netlabel.c