platform_system_sepolicy/build
Inseob Kim 1e796342aa Fix policy file order for hal_attributes
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
2022-06-09 11:26:35 +09:00
..
soong Fix policy file order for hal_attributes 2022-06-09 11:26:35 +09:00
Android.bp Migrate build/ to Python 3 2021-12-08 10:03:00 +11:00
build_sepolicy.py Migrate build/ to Python 3 2021-12-08 10:03:00 +11:00
file_utils.py Migrate build/ to Python 3 2021-12-08 10:03:00 +11:00