I've traced this down to the write_can_lock() macro not working correctly in non-smp kernels
the following patch is needed
diff --git a/security/apparmor/label.c b/security/apparmor/label.c index 788ec21..39eae14 100644 --- a/security/apparmor/label.c +++ b/security/apparmor/label.c @@ -19,6 +19,10 @@ #include "include/policy.h" #include "include/sid.h"
+#if !defined(CONFIG_SMP) +#undef write_can_lock +#define write_can_lock(X) 0 +#endif
/* * the aa_label represents the set of profiles confining an object
I've traced this down to the
write_can_lock() macro not working correctly in non-smp kernels
the following patch is needed
diff --git a/security/ apparmor/ label.c b/security/ apparmor/ label.c apparmor/ label.c apparmor/ label.c
index 788ec21..39eae14 100644
--- a/security/
+++ b/security/
@@ -19,6 +19,10 @@
#include "include/policy.h"
#include "include/sid.h"
+#if !defined( CONFIG_ SMP)
+#undef write_can_lock
+#define write_can_lock(X) 0
+#endif
/*
* the aa_label represents the set of profiles confining an object