diff options
author | Steven Rostedt (Google) <[email protected]> | 2024-05-22 12:49:46 -0400 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2024-05-23 09:31:50 -0400 |
commit | 2dd00ac1d38afba1b59e439abc300a9b0ce696bf (patch) | |
tree | b59d5ea0a6938e8335a3cce341d4391b6e0916c2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6e3d7c903c3e82d626f1bc32c790fc86a179d14c (diff) |
eventfs: Do not use attributes for events directory
The top "events" directory has a static inode (it's created when it is and
removed when the directory is removed). There's no need to use the events
ei->attr to determine its permissions. But it is used for saving the
permissions of the "events" directory for when it is created, as that is
needed for the default permissions for the files and directories
underneath it.
For example:
# cd /sys/kernel/tracing
# mkdir instances/foo
# chown 1001 instances/foo/events
The files under instances/foo/events should still have the same owner as
instances/foo (which the instances/foo/events ei->attr will hold), but the
events directory now has owner 1001.
Link: https://lore.kernel.org/lkml/[email protected]
Cc: Linus Torvalds <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions