diff options
author | Jack Wu <wjack@google.com> | 2022-05-31 12:59:43 +0800 |
---|---|---|
committer | Jack Wu <wjack@google.com> | 2022-05-31 13:08:07 +0800 |
commit | 2d50edbc64862c5e2ca2f47ef119084392a0c83e (patch) | |
tree | 75f696bd2bcaa60d5a54c7e77b7934461c6876ce /vendor | |
parent | 7a86c2d697fbde4391060535c05e05f767cee065 (diff) | |
download | lynx-sepolicy-2d50edbc64862c5e2ca2f47ef119084392a0c83e.tar.gz |
Add sepolicy for P9222 WLC power_supply
05-30 05:13:03.096 836 836 I auditd : type=1400 audit(0.0:6): avc: denied { getattr } for comm="android.hardwar" path="/sys/devices/platform/10da0000.hsi2c/i2c-6/i2c-p9222/power_supply/wireless/capacity" dev="sysfs" ino=71270 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
05-30 05:13:03.100 836 836 I auditd : type=1400 audit(0.0:7): avc: denied { read } for comm="android.hardwar" name="type" dev="sysfs" ino=71272 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
Bug: 234311757
Test: build ok, no avc denied
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I0fb296a9472eda7ff5f2babfea1c769caea525e1
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/genfs_contexts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/genfs_contexts b/vendor/genfs_contexts index b51cb91..11766e5 100644 --- a/vendor/genfs_contexts +++ b/vendor/genfs_contexts @@ -3,3 +3,7 @@ genfscon sysfs /devices/platform/10970000.hsi2c/i2c-4/i2c-cs40l26a u # Wifi genfscon sysfs /devices/soc0/soc_id u:object_r:vendor_location_sysfs:s0 + +# BMS +genfscon sysfs /devices/platform/10da0000.hsi2c/i2c-6/i2c-p9222 u:object_r:sysfs_wlc:s0 +genfscon sysfs /devices/platform/10da0000.hsi2c/i2c-6/i2c-p9222/power_supply u:object_r:sysfs_batteryinfo:s0 |