mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-08 18:31:03 +01:00
15 lines
448 B
Diff
15 lines
448 B
Diff
---
|
|
fs/namespace.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/fs/namespace.c
|
|
+++ b/fs/namespace.c
|
|
@@ -2362,7 +2362,7 @@ char *d_namespace_path(struct dentry *de
|
|
path_get(¤t->fs->root);
|
|
read_unlock(¤t->fs->lock);
|
|
spin_lock(&vfsmount_lock);
|
|
- if (root.mnt)
|
|
+ if (root.mnt && root.mnt->mnt_ns)
|
|
ns_root.mnt = mntget(root.mnt->mnt_ns->root);
|
|
if (ns_root.mnt)
|
|
ns_root.dentry = dget(ns_root.mnt->mnt_root);
|