Jelajahi Sumber

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 <serue@us.ibm.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
James Morris 16 tahun lalu
induk
melakukan
5c4054ccfa
1 mengubah file dengan 0 tambahan dan 4 penghapusan
  1. 0 4
      security/selinux/hooks.c

+ 0 - 4
security/selinux/hooks.c

@@ -3997,10 +3997,6 @@ static int selinux_socket_unix_stream_connect(struct socket *sock,
 	struct avc_audit_data ad;
 	struct avc_audit_data ad;
 	int err;
 	int err;
 
 
-	err = secondary_ops->unix_stream_connect(sock, other, newsk);
-	if (err)
-		return err;
-
 	isec = SOCK_INODE(sock)->i_security;
 	isec = SOCK_INODE(sock)->i_security;
 	other_isec = SOCK_INODE(other)->i_security;
 	other_isec = SOCK_INODE(other)->i_security;