[apparmor] [PATCH] Fix clone test on quantal arm omap-4

John Johansen john.johansen at canonical.com
Fri Oct 12 20:32:30 UTC 2012


It turns out that PAGE_SIZE isn't defined on all architectures.

This fixes a regression test failure happening on Ubuntu quantal
on the arm ti-omap4 architecture

Signed-off-by: John Johansen <john.johansen at canonical.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-12 20:28:36 +0000
@@ -23,6 +23,13 @@
 #include <sched.h>
 #include <linux/unistd.h>
 
+/* PAGE_SIZE is not defined on all architectures, just choose something that
+   should work
+*/
+#ifndef PAGE_SIZE
+#define PAGE_SIZE 0x1000
+#endif
+
 struct option long_options[] =
 {
 	{"newns", 0, 0, 'n'},  /* create a new namespace */




More information about the AppArmor mailing list