ChangeSet 1.2342, 2005/04/01 12:44:10-08:00, [EMAIL PROTECTED]

        [PATCH] SELINUX: Fix i_sock reference.
        
        Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 hooks.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/security/selinux/hooks.c b/security/selinux/hooks.c
--- a/security/selinux/hooks.c  2005-04-01 13:04:42 -08:00
+++ b/security/selinux/hooks.c  2005-04-01 13:04:42 -08:00
@@ -877,7 +877,7 @@
        isec->initialized = 1;
 
 out:
-       if (inode->i_sock) {
+       if (S_ISSOCK(inode->i_mode)) {
                struct socket *sock = SOCKET_I(inode);
                if (sock->sk) {
                        isec->sclass = 
socket_type_to_security_class(sock->sk->sk_family,
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to