[apparmor] [PATCH 0/6] Add tests for abstract and unnamed UNIX domain sockets

Tyler Hicks tyhicks at canonical.com
Thu Sep 4 11:55:40 UTC 2014


This patch set creates regression tests for abstract and unnamed UNIX
domain sockets for the soon-to-land AppArmor unix rule type. It does
this by modifying tests/regression/apparmor/unix_socket{.sh,c,_client.c}.

In hindsight, I think it was a good idea to put all of the logic needed
for pathname, abstract, and unnamed sockets into
unix_socket{.c,_client.c} but unix_socket.sh has become more complex
than I'd like. I initially thought that the rules required for abstract
and unnamed sockets would be the same but soon realized differently. In
the future, I'd like to unroll the test script into individual files for
each of the socket address types. However, I think it is best to have
tests now than to futz around with perfecting the test scripts.

Tyler




More information about the AppArmor mailing list