[apparmor] [PATCH 1/6] tests: Verify aa_getpeercon() return value

Steve Beattie steve at nxnw.org
Tue May 19 22:54:33 UTC 2015


On Mon, Apr 13, 2015 at 04:56:27PM -0500, Tyler Hicks wrote:
> This patch modifies the socketpair.c test to verify the return value of
> aa_getpeercon() based upon the expected label and expected mode lengths.
> 
> The test had to be changed slightly so that the returned mode, from
> aa_getpeercon(), was preserved. It was being overwritten with the
> special NO_MODE value.
> 
> This change helps to make sure that future changes to the code behind
> aa_getpeercon() does not unintentionally change the function's return
> value.
> 
> Signed-off-by: Tyler Hicks <tyhicks at canonical.com>
Acked-by: Steve Beattie <steve at nxnw.org>. Thanks.

-- 
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/20150519/634f35a1/attachment.pgp>


More information about the AppArmor mailing list