mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
Allow apparmor to run on 2.6.20
This commit is contained in:
parent
a0025bf32b
commit
65e483e4aa
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue