diff --git a/module/apparmor/inline.h b/module/apparmor/inline.h index f7da5aeea..e20b27b16 100644 --- a/module/apparmor/inline.h +++ b/module/apparmor/inline.h @@ -10,7 +10,7 @@ #ifndef __INLINE_H #define __INLINE_H -#include +#include 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;