Commit graph

7 commits

Author SHA1 Message Date
eddielan
add3a60535 fingerprint: Allow fps HAL to access sysfs_batteryinfo
avc: denied { search } for name="dock" dev="sysfs" ino=68869
scontext=u:r:hal_fingerprint_capacitance:s0
tcontext=u:object_r:sysfs_batteryinfo:s0
tclass=dir permissive=1

Bug: 268158443
Test: make selinux_policy -j112
Change-Id: I28a50a68019bdf474df4de27d31df06ec13b2a7a
2023-02-07 17:52:35 +08:00
Joshua McCloskey
9a9efabc88 Allow SystemUI to access fp hal.
Bug: 261209932
Test: Verified SystemUI can access HAL extension.
Change-Id: If1a2c7debafad70b6aece6c8ac63852e4b2b6276
Merged-In: If1a2c7debafad70b6aece6c8ac63852e4b2b6276
2023-01-10 01:40:02 +00:00
eddielan
6d590c3695 fingerprint: allow fps to access sysfs_leds
Bug: 261151317
Test: make selinux_policy -j112
Change-Id: I930ebbb5c5478cb2669dd169a8e03db7b5222c8f
2022-12-15 20:55:54 +08:00
eddielan
58e5a0da26 sepolicy: Allow fingerprint to access fwk hwservice
11-11 19:57:30.203   464   464 E SELinux : avc:
denied  { find } for interface=android.frameworks.sensorservice::ISensorManager
sid=u:r:hal_fingerprint_capacitance:s0 pid=903
scontext=u:r:hal_fingerprint_capacitance:s0
tcontext=u:object_r:fwk_sensor_hwservice:s0
tclass=hwservice_manager permissive=0

Bug: 258783592
Test: Build pass
Change-Id: If2185f8f8a095f68ecb70df82c3253f3d5ee32cc
2022-11-11 20:09:32 +08:00
eddielan
8b78d57efa Fix FPS servicemanager sepolicy issue
10-25 03:25:07.740   429   429 I auditd  : type=1400 audit(0.0:4):
avc: denied { call } for comm="servicemanager"
scontext=u:r:servicemanager:s0
tcontext=u:r:hal_fingerprint_capacitance:s0
tclass=binder permissive=0

Bug: 253533883
Test: make selinux_policy -j128 && check log on device
Change-Id: Iea8655fead4398317f0d682e632df8377883d1ea
2022-10-26 14:09:12 +08:00
eddielan
bfba5df7e5 Fix FPS hwservice sepolicy issue
avc:  denied  { find } for interface=com.fingerprints42.extension::IFingerprintEngineering sid=u:r:hal_fingerprint_capacitance:s0 pid=895 scontext=u:r:hal_fingerprint_capacitance:s0 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0

Bug: 253533883
Test: make selinux_policy -j128
Change-Id: I745e01fa2337843a8f16dadb71a07706a6681284
2022-10-17 15:07:54 +08:00
eddielan
904d1b1e5b fingerprint: Add new lable for capacitance fingerprint
u:object_r:hal_fingerprint_capacitance_exec:s0
android.hardware.biometrics.fingerprint-service.fpc42

Bug: 232500959
Test: make selinux_policy -j128
Test: Check binary sepolicy on device
Change-Id: I565030896b6e3ce2d0eec380415148ebfb623469
2022-06-28 18:51:16 +08:00