mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
Allow apparmor to run on 2.6.20
This commit is contained in:
parent
a0025bf32b
commit
65e483e4aa
@ -10,7 +10,7 @@
|
|||||||
#ifndef __INLINE_H
|
#ifndef __INLINE_H
|
||||||
#define __INLINE_H
|
#define __INLINE_H
|
||||||
|
|
||||||
#include <linux/namespace.h>
|
#include <linux/mnt_namespace.h>
|
||||||
|
|
||||||
static inline int __aa_is_confined(struct subdomain *sd)
|
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->dentry = dentry;
|
||||||
data->root = dget(rdentry->d_sb->s_root);
|
data->root = dget(rdentry->d_sb->s_root);
|
||||||
data->namespace = current->namespace;
|
data->mnt_namespace = current->nsproxy->mnt_ns;
|
||||||
data->head = &data->namespace->list;
|
data->head = &data->mnt_namespace->list;
|
||||||
data->pos = data->head->next;
|
data->pos = data->head->next;
|
||||||
prefetch(data->pos->next);
|
prefetch(data->pos->next);
|
||||||
data->errno = 0;
|
data->errno = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user