Re: Full SELinux labels on loopback for UDP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2017-05-04 at 15:27 -0700, Casey Schaufler wrote:
> Grubbing about in the SELinux netlabel code leads
> me to ask how one would go about testing that the
> local loopback (tag 6) CIPSO implementation works
> for UDP. I can readily see how it all works for TCP.
> Since I can't see how it works for UDP, I'd like to
> have a test I can use to convince myself that it
> does indeed work.

selinux-testsuite tests it.  You can just run it in the usual manner.
If you want to do it by hand, then you can do the following:

# cd selinux-testsuite/tests/inet_socket
# make
# ./cipso-fl-load
# ./server dgram 666 &
# ./client dgram 127.0.0.1 666
./server: Got SCM_SECURITY=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
# killall server
# ./cipso-fl-flush






[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux