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

« back to all changes in this revision

Viewing changes to kernel-patches/2.6.18/postapply/module/undo_2.6.20_mnt_namespace.patch

  • 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
 
Index: linux-2.6.18.6/security/apparmor/apparmor.h
2
 
===================================================================
3
 
--- linux-2.6.18.6.orig/security/apparmor/apparmor.h
4
 
+++ linux-2.6.18.6/security/apparmor/apparmor.h
5
 
@@ -210,7 +210,7 @@ typedef int (*aa_iter) (struct subdomain
6
 
  */
7
 
 struct aa_path_data {
8
 
        struct dentry *root, *dentry;
9
 
-       struct mnt_namespace *mnt_namespace;
10
 
+       struct namespace *namespace;
11
 
        struct list_head *head, *pos;
12
 
        int errno;
13
 
 };
14
 
Index: linux-2.6.18.6/security/apparmor/inline.h
15
 
===================================================================
16
 
--- linux-2.6.18.6.orig/security/apparmor/inline.h
17
 
+++ linux-2.6.18.6/security/apparmor/inline.h
18
 
@@ -10,7 +10,7 @@
19
 
 #ifndef __INLINE_H
20
 
 #define __INLINE_H
21
 
 
22
 
-#include <linux/mnt_namespace.h>
23
 
+#include <linux/namespace.h>
24
 
 
25
 
 static inline int __aa_is_confined(struct subdomain *sd)
26
 
 {
27
 
@@ -323,8 +323,8 @@ static inline void __aa_path_begin(struc
28
 
 {
29
 
        data->dentry = dentry;
30
 
        data->root = dget(rdentry->d_sb->s_root);
31
 
-       data->mnt_namespace = current->nsproxy->mnt_ns;
32
 
-       data->head = &data->mnt_namespace->list;
33
 
+       data->namespace = current->namespace;
34
 
+       data->head = &data->namespace->list;
35
 
        data->pos = data->head->next;
36
 
        prefetch(data->pos->next);
37
 
        data->errno = 0;