[apparmor] [PATCH v3 5/7] tests: Break up unix_socket getopt and setopt operations
Steve Beattie
steve at nxnw.org
Thu Sep 25 10:36:36 UTC 2014
On Mon, Sep 22, 2014 at 07:09:15PM -0500, Tyler Hicks wrote:
> The unix_socket operations for testing getopt and setopt permissions
> were occurring back to back. This patch breaks them up into "pre-bind"
> and "post-bind" operations. The setopt operation now occurs pre-bind
> while the getopt operation happens post-bind. This allows for the test
> policy to test setopt without an addr= conditional and to test getopt
> with an addr= conditional.
>
> Additionally, the wrapper functions that call setsockopt()/getsockopt()
> are moved into a new file that both unix_socket.c and
> unix_socket_client.c can reuse.
>
> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
Nice. Acked-by: Steve Beattie <steve at nxnw.org>
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140925/bfe7908a/attachment.pgp>
More information about the AppArmor
mailing list