]> asedeno.scripts.mit.edu Git - linux.git/commit
net: hook socketpair() into LSM
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 4 May 2018 14:28:20 +0000 (16:28 +0200)
committerJames Morris <james.morris@microsoft.com>
Fri, 4 May 2018 19:48:54 +0000 (12:48 -0700)
commitd47cd9450d3b1fcf6ce7c7022f442a69a7b7322e
tree3eb1d53c2c89338b4971c95206e0ae1461fcfb99
parentaae7cfcbb733cf16f3bc9cbb650673b94d5df75f
net: hook socketpair() into LSM

Use the newly created LSM-hook for socketpair(). The default hook
return-value is 0, so behavior stays the same unless LSMs start using
this hook.

Acked-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: James Morris <james.morris@microsoft.com>
net/socket.c