diff options
| author | Pierre-Hugues Husson <phh@phh.me> | 2019-10-25 13:29:20 +0200 |
|---|---|---|
| committer | Jeferson <jroliveira.oliveira301@gmail.com> | 2022-06-04 21:53:51 +0200 |
| commit | 625928655b699028d67c5699bd7c224d4a44d7a7 (patch) | |
| tree | 662c1bcf63de68078a0f64475bcfb8b465c0a208 /sandbox/start | |
| parent | bb57f72d4b985e19dd4d871828cd363b3803c40b (diff) | |
vendor sepolicy never contains new class or classorder, and are not
allowed to.
Though this is not tested, and it turns out Moto did it anyway.
This raises an issue, because class need to be ordered, and thus the cil
contains the ordering. This ordering needs to be merged.
Android 10 added new classes, so the ordering can no longer be merged,
and secilc fails on those devices, preventing boot.
Considering vendor are not supposed to declare new class (and thus
declare classorder), this fix ignores class-es/classorder in vendor
SELinux policy.
Since the vendor selinux policy has allows rules based on this context,
those allows will fail since the class doesn't exist.
Workaround this by ignoring rules with the problematic class
( keystore_moto_key )
Lucky us, this new class `keystore_moto_key` is used by Moto for
framework to framework (more accurately priv app to keymaster), since
our own framework doesn't use this class, simply ignoring it fixes the
issue.
Change-Id: I66339857634ebfdba359f12a99dfd0bff709d80b
Diffstat (limited to 'sandbox/start')
0 files changed, 0 insertions, 0 deletions
