projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'landlock-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic...
[platform/kernel/linux-starfive.git]
/
fs
/
namei.c
diff --git
a/fs/namei.c
b/fs/namei.c
index
720270d
..
309ae6f
100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-3211,7
+3211,7
@@
static int handle_truncate(struct user_namespace *mnt_userns, struct file *filp)
if (error)
return error;
- error = security_
path_truncate(path
);
+ error = security_
file_truncate(filp
);
if (!error) {
error = do_truncate(mnt_userns, path->dentry, 0,
ATTR_MTIME|ATTR_CTIME|ATTR_OPEN,