kernel commit 0b811db2cb2aabc910e53d34ebb95a15997c33e7 ("selinux: provide socketpair callback") introduced support for SO_PEERSEC on sockets created via socketpair(). Augment the tests/unix_socket tests to test this functionality; currently it only tests SO_PEERSEC for sockets created via accept().
kernel commit 0b811db2cb2aabc910e53d34ebb95a15997c33e7 ("selinux: provide socketpair callback") introduced support for SO_PEERSEC on sockets created via socketpair(). Augment the tests/unix_socket tests to test this functionality; currently it only tests SO_PEERSEC for sockets created via accept().