[apparmor] [PATCH] Fix apparmor coredump regression test
Kees Cook
kees at ubuntu.com
Sat Sep 29 17:55:31 UTC 2012
On Sat, Sep 29, 2012 at 02:20:28AM -0700, John Johansen wrote:
> The apparmor coredump regression test was broken.
>
> It failed to remove coredump files named "core"
>
> It failed to properly detect "core.<pid>" files
>
> And it would fail if the coredump_pattern had been modified to
> a different location.
>
> This lead one of the tests to report it was passing when it
> wasn't because it was detecting the previous tests core file.
>
> Fix the test to set the coredump_pattern, to dump into the
> tmpdir used for the test.
>
> Make it so it will only detect the core file for the pid of
> the last test run.
>
> And extend the test to have a couple of extra test cases.
>
> Signed-off-by: John Johansen <john.johansen at canonical.com>
Acked-by: Kees Cook <kees at ubuntu.com>
--
Kees Cook
More information about the AppArmor
mailing list