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)
commitbf8e602186ec402ed937b2cbd6c39a34c0029757
tree06d4ed33b44d822c1a04e7239f23a0db722e6d82
parent17911ff38aa58d3c95c07589dbf5d3564c4cf3c5
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