summaryrefslogtreecommitdiff
path: root/fs/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/init.c')
-rw-r--r--fs/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/init.c b/fs/init.c
index 02723bea8499..891284f8a443 100644
--- a/fs/init.c
+++ b/fs/init.c
@@ -181,7 +181,7 @@ int __init init_link(const char *oldname, const char *newname)
error = -EXDEV;
if (old_path.mnt != new_path.mnt)
goto out_dput;
- error = may_linkat(&old_path);
+ error = may_linkat(&init_user_ns, &old_path);
if (unlikely(error))
goto out_dput;
error = security_path_link(old_path.dentry, &new_path, new_dentry);