[apparmor] [patch] libapparmor: fix ptrace regression test failure
Seth Arnold
seth.arnold at canonical.com
Fri Aug 18 23:50:16 UTC 2017
On Fri, Aug 18, 2017 at 04:41:48PM -0700, Steve Beattie wrote:
> 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>
Acked-by: Seth Arnold <seth.arnold at canonical.com>
Thanks
> ---
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20170818/d8744108/attachment.pgp>
More information about the AppArmor
mailing list