From: Paul Moore Date: Fri, 27 Feb 2009 20:00:03 +0000 (-0500) Subject: selinux: Fix a panic in selinux_netlbl_inode_permission() X-Git-Tag: v2.6.29-rc7~14^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7f59dc4642ce2fc7b79fcd4ec02ffce7f21eb02;p=pandora-kernel.git 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 Signed-off-by: James Morris --- Reading git-diff-tree failed