open: handle idmapped mounts in do_truncate()
[linux-block.git] / fs / namei.c
index 5c9f6f8e90c43cd7debfca9efe77b99560ee2925..c8c083daf36837b5528f67c949ad54d775276c84 100644 (file)
@@ -3009,7 +3009,7 @@ static int handle_truncate(struct file *filp)
        if (!error)
                error = security_path_truncate(path);
        if (!error) {
-               error = do_truncate(path->dentry, 0,
+               error = do_truncate(&init_user_ns, path->dentry, 0,
                                    ATTR_MTIME|ATTR_CTIME|ATTR_OPEN,
                                    filp);
        }