common: Fix neverallows of fastcharge rules
authorroynatech2544 <whiteshell2544@naver.com>
Sat, 11 Feb 2023 07:23:56 +0000 (16:23 +0900)
committerRoyna <whiteshell2544@naver.com>
Sat, 11 Feb 2023 08:09:24 +0000 (09:09 +0100)
commiteeb0065f8b87c130ed300af700cb66c8d83f67f0
tree8874b04a28c7e71025f2274dd5f5ca81c0910aaa
parentb5db2e503514d5822ca29eab8c02ee8d73a5fdc3
common: Fix neverallows of fastcharge rules

- hal_lineage_fastcharge itself is a typeattribute, therefore it is considered a coredomain and neverallow doesn't pass.

neverallow check failed at
out/soong/.intermediates/system/sepolicy/plat_sepolicy.cil/android_common/plat_sepolicy.cil:23504
from system/sepolicy/private/property.te:324
(neverallow base_typeattr_741 base_typeattr_742 (property_service
(set)))                                         <root>
allow at
out/soong/.intermediates/system/sepolicy/vendor_sepolicy.cil/android_common/vendor_sepolicy.cil:1828
(allow hal_lineage_fastcharge vendor_fastcharge_prop (property_service
(set)))

- Correct the usage to hal_lineage_fastcharge_default, which is a domain type and _NOT_ a coredomain, neverallow passes

Test: m bacon, build works
Change-Id: I04ae2ff0db0de2a6deae2860951d6f7b40c7ae79
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
common/vendor/hal_lineage_fastcharge_default.te