diff options
author | John Stultz <john.stultz@linaro.org> | 2019-03-15 12:12:26 -0700 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2019-03-15 12:16:03 -0700 |
commit | c8ab25a202b4597b73f10b6d5e0e6117a9d14139 (patch) | |
tree | b5c1b8ff872285420ae069c46f643e6126b91998 | |
parent | 723ccc2845ae66a3877f415b65f15db643910fef (diff) | |
download | hikey-c8ab25a202b4597b73f10b6d5e0e6117a9d14139.tar.gz |
hikey960: Fix rtc0 hwtosys selinux denial
Noticed the audit denial on rtc hwtosys file:
01-01 03:50:51.146 2877 2877 W system_server: type=1400 audit(0.0:13): avc: denied { read } for name="hctosys" dev="sysfs" ino=14546 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
So added this sepolicy change to address it.
Change-Id: Ie1302cf15eaee63f395c34a16352e60152eb0bf0
Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r-- | sepolicy/genfs_contexts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sepolicy/genfs_contexts b/sepolicy/genfs_contexts index fbea22aa..ef5b785e 100644 --- a/sepolicy/genfs_contexts +++ b/sepolicy/genfs_contexts @@ -1,2 +1,3 @@ # sysfs genfscon sysfs /devices/virtual/nanohub/nanohub u:object_r:sysfs_nanoapp_cmd:s0 +genfscon sysfs /devices/platform/soc/fff04000.rtc/rtc u:object_r:sysfs_rtc:s0 |