forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
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