hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/fs/tracefs/inode.c
....@@ -553,6 +553,9 @@
553553 */
554554 struct dentry *tracefs_create_dir(const char *name, struct dentry *parent)
555555 {
556
+ if (security_locked_down(LOCKDOWN_TRACEFS))
557
+ return NULL;
558
+
556559 return __create_dir(name, parent, &simple_dir_inode_operations);
557560 }
558561