selinux: provide socketpair callback
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 4 May 2018 14:28:21 +0000 (16:28 +0200)
committerJames Morris <james.morris@microsoft.com>
Fri, 4 May 2018 19:48:54 +0000 (12:48 -0700)
commit0b811db2cb2aabc910e53d34ebb95a15997c33e7
tree4f4d96751c0c98a8f81a79526585c73cf4df51e8
parentd47cd9450d3b1fcf6ce7c7022f442a69a7b7322e
selinux: provide socketpair callback

Make sure to implement the new socketpair callback so the SO_PEERSEC
call on socketpair(2)s will return correct information.

Acked-by: Serge Hallyn <serge@hallyn.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Tom Gundersen <teg@jklm.no>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
security/selinux/hooks.c