[apparmor] [PATCH] Fix clone test on quantal arm omap-4
Steve Beattie
steve at nxnw.org
Mon Oct 15 07:06:31 UTC 2012
On Sun, Oct 14, 2012 at 11:15:09PM -0700, John Johansen wrote:
> Alright here is a simple alternative I think is more than sufficient
Acked-By: Steve Beattie <sbeattie at ubuntu.com>
> === modified file 'tests/regression/apparmor/clone.c'
> --- tests/regression/apparmor/clone.c 2010-12-20 20:29:10 +0000
> +++ tests/regression/apparmor/clone.c 2012-10-15 06:14:01 +0000
> @@ -23,6 +23,8 @@
> #include <sched.h>
> #include <linux/unistd.h>
>
> +#define STACK_SIZE 0x8000
> +
> struct option long_options[] =
> {
> {"newns", 0, 0, 'n'}, /* create a new namespace */
> @@ -59,7 +61,7 @@
> int waitstatus;
> int c;
> char buf[BUFSIZ];
> - int stack_size = PAGE_SIZE << 4;
> + int stack_size = STACK_SIZE;
> void *child_stack = malloc(stack_size);
> int clone_flags = SIGCHLD;
>
>
>
--
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: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20121015/d70983ef/attachment.pgp>
More information about the AppArmor
mailing list