device_xiaomi_sweet/sepolicy/vendor/file_contexts
Kuba Wojciechowski 01a3bae6f0
sweet: sepolicy: initial rules for batterysecret
* Fixes:
07-25 15:31:45.325     0     0 I init    : starting service 'batterysecret'...
07-25 15:31:45.336     0     0 F init    : cannot setexeccon('u:r:batterysecret:s0') for batterysecret: Invalid argument
07-25 15:31:45.345     0     0 I init    : Service 'batterysecret' (pid 6483) exited with status 6
07-25 15:31:45.345     0     0 I init    : Sending signal 9 to service 'batterysecret' (pid 6483) process group...

Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
Change-Id: I4c547a0162275a1fb99b1038f8bdd5b1f8632095
2022-05-01 00:16:09 -04:00

11 lines
602 B
Plaintext

# Proximity
/sys/bus/iio/devices u:object_r:vendor_sysfs_iio:s0
/sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-04/c440000.qcom,spmi:qcom,pm6150l@4:vadc@3100/iio:device1(/.*)? u:object_r:vendor_sysfs_iio:s0
/sys/devices/platform/us_prox.0/iio:device2(/.*)? u:object_r:vendor_sysfs_iio:s0
# Battery secret
/vendor/bin/batterysecret u:object_r:batterysecret_exec:s0
# Persist subsystem
/mnt/vendor/persist/subsys(/.*)? u:object_r:persist_subsys_file:s0