Commit 9c63be2a authored by Steven Rostedt (VMware)'s avatar Steven Rostedt (VMware) Committed by Roger Liao
Browse files

UPSTREAM: tracefs: Have tracefs directories not set OTH permission bits by default

[ Upstream commit 49d67e44 ]

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: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit 3c2434d9)

Bug: 214061655
Signed-off-by: default avatarRoger Liao <rogerliao@google.com>
Change-Id: Id2cd708f00f31adc8ef398c80e098fe8742e6fa9
parent 64095600
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment