From 35c65c1e01b507d95412df2b3764c42d5b3161a5 Mon Sep 17 00:00:00 2001
From: Tri Vo <trong@google.com>
Date: Wed, 17 Jan 2018 12:44:34 -0800
Subject: [PATCH] system_server: remove access sysfs_devices_system_cpu

CpuFrequency.java seems to be the only thing that depends on
/sys/devices/system/cpu in system_server. And according to
b/68988722#comment15, that dependency is not exercised.

Bug: 68988722
Test: walleye boots without denials to sysfs_devices_system_cpu
Change-Id: If777b716bf74188581327b7f5aa709f5d88aad2d
---
 private/system_server.te | 1 -
 1 file changed, 1 deletion(-)

diff --git a/private/system_server.te b/private/system_server.te
index 92988b488..62f3a86be 100644
--- a/private/system_server.te
+++ b/private/system_server.te
@@ -280,7 +280,6 @@ r_dir_file(system_server, sysfs_switch)
 r_dir_file(system_server, sysfs_wakeup_reasons)
 
 allow system_server sysfs_nfc_power_writable:file rw_file_perms;
-allow system_server sysfs_devices_system_cpu:file w_file_perms;
 allow system_server sysfs_mac_address:file r_file_perms;
 allow system_server sysfs_power:dir search;
 allow system_server sysfs_power:file rw_file_perms;
-- 
GitLab