The AF_UNIX pathname stream and seqpacket tests are not failing when the server program is missing the getopt unix permission. Note that the dgram version of this test fails as expected. This suggests some type of difference in the mediation of getsockopt() between connected and connectionless sockets.
* The test failures:
Error: unix_socket passed. Test 'AF_UNIX pathname socket (stream); confined server w/ a missing af_unix access (getopt)' was expected to 'fail'
Error: unix_socket passed. Test 'AF_UNIX pathname socket (seqpacket); confined server w/ a missing af_unix access (getopt)' was expected to 'fail'
* The profile (note the missing getopt permission):
The AF_UNIX pathname stream and seqpacket tests are not failing when the server program is missing the getopt unix permission. Note that the dgram version of this test fails as expected. This suggests some type of difference in the mediation of getsockopt() between connected and connectionless sockets.
* The test failures:
Error: unix_socket passed. Test 'AF_UNIX pathname socket (stream); confined server w/ a missing af_unix access (getopt)' was expected to 'fail'
Error: unix_socket passed. Test 'AF_UNIX pathname socket (seqpacket); confined server w/ a missing af_unix access (getopt)' was expected to 'fail'
* The profile (note the missing getopt permission):
/home/tyhicks/ apparmor. git/tests/ regression/ apparmor/ unix_socket { */attr/ current w, tyhicks/ apparmor. git/tests/ regression/ apparmor/ unix_socket rix, x86_64- linux-gnu/ libpthread- 2.19.so mr, x86_64- linux-gnu/ libc-2. 19.so mr, x86_64- linux-gnu/ ld-2.19. so rix, sdtest. 18777-31595- M5yfgv/ output. unix_socket w, sdtest. 18777-31595- M5yfgv/ aa_sock rw, tyhicks/ apparmor. git/tests/ regression/ apparmor/ unix_socket_ client Ux,
/etc/ld.so.cache r,
/proc/
/dev/urandom r,
/home/
/lib/
/lib/
/lib/
/tmp/
/tmp/
unix (create,,setopt),
/home/
}
I've attached the strace output of the test run to show that the unix_socket program does successfully call getsockopt().