Allow apparmor to run on 2.6.20

This commit is contained in:
John Johansen 2007-02-01 01:11:07 +00:00
parent a0025bf32b
commit 65e483e4aa

View file

@ -10,7 +10,7 @@
#ifndef __INLINE_H
#define __INLINE_H
#include <linux/namespace.h>
#include <linux/mnt_namespace.h>
static inline int __aa_is_confined(struct subdomain *sd)
{
@ -323,8 +323,8 @@ static inline void __aa_path_begin(struct dentry *rdentry,
{
data->dentry = dentry;
data->root = dget(rdentry->d_sb->s_root);
data->namespace = current->namespace;
data->head = &data->namespace->list;
data->mnt_namespace = current->nsproxy->mnt_ns;
data->head = &data->mnt_namespace->list;
data->pos = data->head->next;
prefetch(data->pos->next);
data->errno = 0;