projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'renesas-fixes-for-v6.6-tag2' of git://git.kernel.org/pub/scm/linux/kernel...
[platform/kernel/linux-rpi.git]
/
fs
/
tracefs
/
inode.c
diff --git
a/fs/tracefs/inode.c
b/fs/tracefs/inode.c
index
de5b722
..
891653b
100644
(file)
--- a/
fs/tracefs/inode.c
+++ b/
fs/tracefs/inode.c
@@
-385,7
+385,7
@@
static void tracefs_dentry_iput(struct dentry *dentry, struct inode *inode)
ti = get_tracefs(inode);
if (ti && ti->flags & TRACEFS_EVENT_INODE)
ti = get_tracefs(inode);
if (ti && ti->flags & TRACEFS_EVENT_INODE)
- eventfs_set_ef_status_free(dentry);
+ eventfs_set_ef_status_free(
ti,
dentry);
iput(inode);
}
iput(inode);
}
@@
-673,6
+673,9
@@
static struct dentry *__create_dir(const char *name, struct dentry *parent,
*/
struct dentry *tracefs_create_dir(const char *name, struct dentry *parent)
{
*/
struct dentry *tracefs_create_dir(const char *name, struct dentry *parent)
{
+ if (security_locked_down(LOCKDOWN_TRACEFS))
+ return NULL;
+
return __create_dir(name, parent, &simple_dir_inode_operations);
}
return __create_dir(name, parent, &simple_dir_inode_operations);
}