]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Do not create tracefs files if tracefs lockdown is in effect
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 12 Oct 2019 00:41:41 +0000 (20:41 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 13 Oct 2019 00:49:07 +0000 (20:49 -0400)
commitabc531b11e26243de115dd4a6946eb931cba0b82
tree06d4ed33b44d822c1a04e7239f23a0db722e6d82
parentc8045810554f986a1e87f19461e50e8664c8e3f6
tracing: Do not create tracefs files if tracefs lockdown is in effect

If on boot up, lockdown is activated for tracefs, don't even bother creating
the files. This can also prevent instances from being created if lockdown is
in effect.

Link: http://lkml.kernel.org/r/CAHk-=whC6Ji=fWnjh2+eS4b15TnbsS4VPVtvBOwCy1jjEG_JHQ@mail.gmail.com
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
fs/tracefs/inode.c