Skip to content

Commit fa17cb4

Browse files
Kalesh Singhrostedt
authored andcommitted
tracing: Document tracefs gid mount option
Commit ee7f366 ("tracefs: Have new files inherit the ownership of their parent") and commit 48b27b6 ("tracefs: Set all files to the same group ownership as the mount option") introduced a new gid mount option that allows specifying a group to apply to all entries in tracefs. Document this in the tracing readme. Cc: Eric Sandeen <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Ali Zahraee <[email protected]> Cc: Christian Brauner <[email protected]> Cc: David Howells <[email protected]> Cc: Masami Hiramatsu <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Kalesh Singh <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent e4d3214 commit fa17cb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel/trace/trace.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5501,6 +5501,10 @@ static const struct file_operations tracing_iter_fops = {
55015501

55025502
static const char readme_msg[] =
55035503
"tracing mini-HOWTO:\n\n"
5504+
"By default tracefs removes all OTH file permission bits.\n"
5505+
"When mounting tracefs an optional group id can be specified\n"
5506+
"which adds the group to every directory and file in tracefs:\n\n"
5507+
"\t e.g. mount -t tracefs [-o [gid=<gid>]] nodev /sys/kernel/tracing\n\n"
55045508
"# echo 0 > tracing_on : quick way to disable tracing\n"
55055509
"# echo 1 > tracing_on : quick way to re-enable tracing\n\n"
55065510
" Important files:\n"

0 commit comments

Comments
 (0)