apparmor/kernel-patches/for-mainline/struct-flagval-not-needed.diff
Andreas Gruenbacher e4541f7879 Check in the revised versions of John's fixes and cleanups.
Check in a series of additional cleanups.
2007-02-11 02:09:31 +00:00

33 lines
773 B
Diff

There is no need to give struct flagval a name; it is only used
in this one place.
Index: b/security/apparmor/apparmor.h
===================================================================
--- a/security/apparmor/apparmor.h
+++ b/security/apparmor/apparmor.h
@@ -77,12 +77,6 @@ static inline int mediated_filesystem(st
/* basic AppArmor data structures */
-struct flagval {
- int debug;
- int complain;
- int audit;
-};
-
#define AA_SECURE_EXEC_NEEDED 0x00000001
#define AA_EXEC_MODIFIER_MASK(mask) ((mask) & AA_EXEC_MODIFIERS)
@@ -113,7 +107,11 @@ struct aa_profile {
struct list_head list;
struct list_head sub;
- struct flagval flags;
+ struct {
+ int debug;
+ int complain;
+ int audit;
+ } flags;
struct aa_profile *null_profile;
int isstale;