Revert "tracefs: Have tracefs directories not set OTH permission bits by default"
authorKalesh Singh <kaleshsingh@google.com>
Fri, 11 Feb 2022 17:36:26 +0000 (09:36 -0800)
committerKalesh Singh <kaleshsingh@google.com>
Fri, 11 Feb 2022 17:52:49 +0000 (17:52 +0000)
commitd688acb0128593f74b7740e29fba6a09298bc7c8
treed7fafa6e11663b816dafac90e1f2e47616b1294d
parent76268ecb6d7ac3c34222fa2f992bcff3c424f3c9
Revert "tracefs: Have tracefs directories not set OTH permission bits by default"

This reverts commit e2c27194fcd9f9703d927aeea104ec304bcf0ae3.

This change breaks Android userspace tools (tracepoint bpf programs,
simpleperf, atrace, perfetto, ...) that assume access to tracefs.

On Android T and S (QPR2) this is fixed by adding a gid mount option
in userspace, for devices with older kernels the permission change
needs to be reverted.

Bug: 217150407
Bug: 216676030
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Change-Id: I53a63c42b4cf1133a6a2fc1674380ffd8f331392
fs/tracefs/inode.c