Message ID | 20230905182711.692687042@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 51aab5ffceb43e05119eb059048fd75765d2bc21 |
Headers | show |
Series | tracing: Add missing LOCKDOWN_TRACEFS checking | expand |
diff --git a/fs/tracefs/inode.c b/fs/tracefs/inode.c index de5b72216b1a..3b8dd938b1c8 100644 --- a/fs/tracefs/inode.c +++ b/fs/tracefs/inode.c @@ -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) { + if (security_locked_down(LOCKDOWN_TRACEFS)) + return NULL; + return __create_dir(name, parent, &simple_dir_inode_operations); }