~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to kernel-patches/for-mainline/struct-flagval-not-needed.diff

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
There is no need to give struct flagval a name; it is only used
2
 
in this one place.
3
 
 
4
 
Index: b/security/apparmor/apparmor.h
5
 
===================================================================
6
 
--- a/security/apparmor/apparmor.h
7
 
+++ b/security/apparmor/apparmor.h
8
 
@@ -77,12 +77,6 @@ static inline int mediated_filesystem(st
9
 
 
10
 
 /* basic AppArmor data structures */
11
 
 
12
 
-struct flagval {
13
 
-       int debug;
14
 
-       int complain;
15
 
-       int audit;
16
 
-};
17
 
-
18
 
 #define AA_SECURE_EXEC_NEEDED 0x00000001
19
 
 
20
 
 #define AA_EXEC_MODIFIER_MASK(mask) ((mask) & AA_EXEC_MODIFIERS)
21
 
@@ -113,7 +107,11 @@ struct aa_profile {
22
 
 
23
 
        struct list_head list;
24
 
        struct list_head sub;
25
 
-       struct flagval flags;
26
 
+       struct {
27
 
+               int debug;
28
 
+               int complain;
29
 
+               int audit;
30
 
+       } flags;
31
 
        struct aa_profile *null_profile;
32
 
        int isstale;
33