~ubuntu-branches/ubuntu/raring/apparmor/raring

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-03-23 16:42:01 UTC
  • Revision ID: james.westby@ubuntu.com-20070323164201-jkax6f0oku087b7l
Tags: upstream-2.0.1+510.dfsg
ImportĀ upstreamĀ versionĀ 2.0.1+510.dfsg

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;