1e796342aa
Partners should be able to add hal_attributes to system_ext or product's public/attributes file. However, if system_ext or product's public/attributes contain any domain sets, numbers for base_typeattr become inconsistent. It's because the order is now: ... te_macros attributes ioctl_defines ioctl_macros *.te roles_decl ... That is, system_ext/public/attributes and product/public/attributes are included prior to system/sepolicy/**/*.te. Thus, plat_sepolicy.cil and system_ext_sepolicy.cil/product_sepolicy.cil can conflict. This change fixes this issue by making attributes and *.te files have the same rank. This way, system_ext/public/attributes is included after system/sepolicy/**/*.te. Bug: 234137981 Test: m selinux_policy after adding hal_attribute to system_ext/public/attributes Change-Id: I85e1f6b8e4ab47c723724684d1938297a3305fe8 |
||
---|---|---|
.. | ||
soong | ||
Android.bp | ||
build_sepolicy.py | ||
file_utils.py |