lsm: Remove the socket_post_accept() hook
The socket_post_accept() hook is not currently used by any in-tree modules and its existence continues to cause problems by confusing people about what can be safely accomplished using this hook. If a legitimate need for this hook arises in the future it can always be reintroduced. Signed-off-by: Paul Moore <paul.moore@hp.com> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
@@ -620,10 +620,6 @@ static int cap_socket_accept(struct socket *sock, struct socket *newsock)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void cap_socket_post_accept(struct socket *sock, struct socket *newsock)
|
||||
{
|
||||
}
|
||||
|
||||
static int cap_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)
|
||||
{
|
||||
return 0;
|
||||
@@ -1014,7 +1010,6 @@ void security_fixup_ops(struct security_operations *ops)
|
||||
set_to_cap_if_null(ops, socket_connect);
|
||||
set_to_cap_if_null(ops, socket_listen);
|
||||
set_to_cap_if_null(ops, socket_accept);
|
||||
set_to_cap_if_null(ops, socket_post_accept);
|
||||
set_to_cap_if_null(ops, socket_sendmsg);
|
||||
set_to_cap_if_null(ops, socket_recvmsg);
|
||||
set_to_cap_if_null(ops, socket_getsockname);
|
||||
|
Reference in New Issue
Block a user