hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
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