diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-08-18 18:24:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-18 21:16:15 +0300 |
commit | 1067f23c1ee7b00852c14ed543bbee9874d6867c (patch) | |
tree | bc4087bb5fbd27e97bcca00fe49cbee8e993a8da /kernel/trace/trace_hwlat.c | |
parent | 5425f404b527b04ca6ce5eb01e2b9b92e9d1853b (diff) | |
download | linux-1067f23c1ee7b00852c14ed543bbee9874d6867c.tar.xz |
tracefs: Have tracefs directories not set OTH permission bits by default
[ Upstream commit 49d67e445742bbcb03106b735b2ab39f6e5c56bc ]
The tracefs file system is by default mounted such that only root user can
access it. But there are legitimate reasons to create a group and allow
those added to the group to have access to tracing. By changing the
permissions of the tracefs mount point to allow access, it will allow
group access to the tracefs directory.
There should not be any real reason to allow all access to the tracefs
directory as it contains sensitive information. Have the default
permission of directories being created not have any OTH (other) bits set,
such that an admin that wants to give permission to a group has to first
disable all OTH bits in the file system.
Link: https://lkml.kernel.org/r/20210818153038.664127804@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/trace/trace_hwlat.c')
0 files changed, 0 insertions, 0 deletions