diff options
author | Beau Belgrave <beaub@linux.microsoft.com> | 2022-03-08 14:28:07 -0800 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-03-15 14:33:20 -0400 |
commit | 089331d47325d3f55016ed3d1f79ffd2754fb19e (patch) | |
tree | be7460b7e6171017a3a0806cf0d46510d33f0e3f /fs/omfs/dir.c | |
parent | bc47ee4844d6b7d7351536cd99d35848c4449689 (diff) |
user_events: Add trace event call as root for low permission cases
Tracefs by default is locked down heavily. System operators can open up
some files, such as user_events to a broader set of users. These users
do not have access within tracefs beyond just the user_event files. Due
to this restriction the trace_add_event_call/remove calls will silently
fail since the caller does not have permissions to create directories.
To fix this trace_add_event_call/remove calls will be issued with
override creds of the global root UID. Creds are reverted immediately
afterward.
Link: https://lkml.kernel.org/r/20220308222807.2040-1-beaub@linux.microsoft.com
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'fs/omfs/dir.c')
0 files changed, 0 insertions, 0 deletions