Move CPU time in state bpf maps to their own dir,

This will allow us to use a genfscon SELinux rule to get finer grained access control.

Bug: 422976190

Test: Recorded a Perfetto trace with statsd atom  CPU_CYCLES_PER_UID_CLUSTER, tested manually with go/atomtester.
Change-Id: Ic16da605b9d7150d42176c428f0e1ecaf4a9472f
This commit is contained in:
Simon MacMullen 2025-06-23 11:52:14 +00:00
commit 8546ea34c6

View file

@ -215,8 +215,8 @@ const GID_MEDIA_RW: u32 = AID_MEDIA_RW;
const FILE_ARR: &[BpfFileDesc] = &[
BpfFileDesc {
filename: "timeInState.bpf",
dir: "/etc/bpf/",
prefix: "",
dir: "/etc/bpf/cputimeinstate/",
prefix: "cputimeinstate/",
critical: false,
skip_on_user: false,
maps: &[