[apparmor] [patch] libapparmor: fix ptrace regression test failure

Steve Beattie steve at nxnw.org
Fri Aug 18 23:41:48 UTC 2017


libapparmor: fix ptrace regression test failure

In http://bazaar.launchpad.net/~apparmor-dev/apparmor/master/revision/3659,
a testcase was added that where the expected output file did not match
the input source name, cause libapparmor's regression tests to fail:

  Output doesn't match expected data:
  --- ./test_multi/ptrace_no_denied_mask.out    2017-08-18 16:35:30.000000000 -0700
  +++ ./test_multi/out/ptrace_no_denied_mask.out  2017-08-18 16:35:38.985863094 -0700
  @@ -1,5 +1,5 @@
   START
  -File: ptrace_1.in
  +File: ptrace_no_denied_mask.in
   Event type: AA_RECORD_DENIED
   Audit ID: 1495217772.047:4471
   Operation: ptrace
  FAIL: ptrace_no_denied_mask

This patch corrects the issue.

Nominated for trunk and 2.11 (r3659 was backported there).

Signed-off-by: Steve Beattie <steve at nxnw.org>
---
 libraries/libapparmor/testsuite/test_multi/ptrace_no_denied_mask.out |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/libraries/libapparmor/testsuite/test_multi/ptrace_no_denied_mask.out
===================================================================
--- a/libraries/libapparmor/testsuite/test_multi/ptrace_no_denied_mask.out
+++ b/libraries/libapparmor/testsuite/test_multi/ptrace_no_denied_mask.out
@@ -1,5 +1,5 @@
 START
-File: ptrace_1.in
+File: ptrace_no_denied_mask.in
 Event type: AA_RECORD_DENIED
 Audit ID: 1495217772.047:4471
 Operation: ptrace

-- 
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: 801 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20170818/110493c4/attachment.pgp>


More information about the AppArmor mailing list