From: James Morris Date: Thu, 29 Jan 2009 01:34:53 +0000 (+1100) Subject: selinux: remove secondary ops call to unix_stream_connect X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5c4054ccfafb6a446e9b65c524af1741656c6c60;p=linux-beck.git selinux: remove secondary ops call to unix_stream_connect Remove secondary ops call to unix_stream_connect, which is a noop in capabilities. Acked-by: Serge Hallyn Acked-by: Eric Paris Signed-off-by: James Morris --- diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 0bd36a17587c..25198e9896fa 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -3997,10 +3997,6 @@ static int selinux_socket_unix_stream_connect(struct socket *sock, struct avc_audit_data ad; int err; - err = secondary_ops->unix_stream_connect(sock, other, newsk); - if (err) - return err; - isec = SOCK_INODE(sock)->i_security; other_isec = SOCK_INODE(other)->i_security;