summaryrefslogtreecommitdiffstats
path: root/init/uevent.h
diff options
context:
space:
mode:
authorLogan Chien <loganchien@google.com>2018-05-03 14:33:52 +0800
committerLogan Chien <loganchien@google.com>2018-05-04 15:21:14 +0800
commitc50144ef1d7ddebed3f765f176fa3a03d3d5f521 (patch)
tree7864e35e5ae39bf673df34f7c21a385a2a1abad7 /init/uevent.h
parent979931803b5ba3a19db6e2ff3971f8447147fb8e (diff)
downloadcore-c50144ef1d7ddebed3f765f176fa3a03d3d5f521.tar.gz
core-c50144ef1d7ddebed3f765f176fa3a03d3d5f521.tar.bz2
core-c50144ef1d7ddebed3f765f176fa3a03d3d5f521.zip
init: Use sepolicy version instead
This commit uses vendor sepolicy file version (defined in `/vendor/etc/selinux/plat_sepolicy_vers.txt`) to determine whether the source context should be set as `u:r:vendor_init:s0`. Before this commit, the criterion was `ro.vndk.version` >= 28. However, the check in `property_service.cpp` will always be true because `ro.vndk.version` hasn't been loaded from `/vendor/default.prop`. Furthermore, under some circumstances, `ro.vndk.version` may be different from `plat_sepolicy_vers.txt` (e.g. O-MR1 vendor does not define `ro.vndk.version`). Bug: 78605339 # high-level bug to combine O-MR1 and P GSI Bug: 79135481 # the usage of `ro.vndk.version` in init Test: vts-tradefed run vts -m VtsTrebleVintfTest # tetheroffload Change-Id: Ied46e9346b4ca7931aa4dcf1c9dbc11de0e12d93 Merged-In: Ied46e9346b4ca7931aa4dcf1c9dbc11de0e12d93
Diffstat (limited to 'init/uevent.h')
0 files changed, 0 insertions, 0 deletions