projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
open: handle idmapped mounts in do_truncate()
[linux-block.git]
/
fs
/
namei.c
diff --git
a/fs/namei.c
b/fs/namei.c
index 5c9f6f8e90c43cd7debfca9efe77b99560ee2925..c8c083daf36837b5528f67c949ad54d775276c84 100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-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);
}