mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Allow access to /sys/devices/system/cpu/
PiperOrigin-RevId: 439506287 Change-Id: I5d41ed234860f02329c960144b1da725e24549dd
This commit is contained in:
parent
e98133c7b4
commit
1db315207a
|
@ -502,6 +502,7 @@ PolicyBuilder& PolicyBuilder::AllowRestartableSequencesWithProcFiles(
|
||||||
AllowRestartableSequences(cpu_fence_mode);
|
AllowRestartableSequences(cpu_fence_mode);
|
||||||
AddFile("/proc/cpuinfo");
|
AddFile("/proc/cpuinfo");
|
||||||
AddFile("/proc/stat");
|
AddFile("/proc/stat");
|
||||||
|
AddDirectory("/sys/devices/system/cpu");
|
||||||
if (cpu_fence_mode == kAllowSlowFences) {
|
if (cpu_fence_mode == kAllowSlowFences) {
|
||||||
AddFile("/proc/self/cpuset");
|
AddFile("/proc/self/cpuset");
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,6 +148,8 @@ class PolicyBuilder final {
|
||||||
// Allows these files:
|
// Allows these files:
|
||||||
// - "/proc/cpuinfo"
|
// - "/proc/cpuinfo"
|
||||||
// - "/proc/stat"
|
// - "/proc/stat"
|
||||||
|
// And this directory (including subdirs/files):
|
||||||
|
// - "/sys/devices/system/cpu/"
|
||||||
//
|
//
|
||||||
// If `cpu_fence_mode` is `kAllowSlowFences`, also permits slow CPU fences.
|
// If `cpu_fence_mode` is `kAllowSlowFences`, also permits slow CPU fences.
|
||||||
// Allows these syscalls:
|
// Allows these syscalls:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user