platform_system_sepolicy/prebuilts/api
Inseob Kim 4f20ff73ee Add 31.0 mapping files
Steps taken to produce the mapping files:

1. Add prebuilts/api/31.0/plat_pub_versioned.cil from the
/vendor/etc/selinux/plat_pub_versioned.cil file built on sc-dev with
lunch target aosp_arm64-eng. Add prebuilts/api/31.0/vendor_sepolicy.cil
as an empty file.

2. Add new file private/compat/31.0/31.0.cil by doing the following:
- copy /system/etc/selinux/mapping/31.0.cil from sc-dev aosp_arm64-eng
device to private/compat/31.0/31.0.cil
- remove all attribute declaration statement (typeattribute ...) and
sort lines alphabetically
- some selinux types were added/renamed/deleted w.r.t 31 sepolicy.
Find all such types using treble_sepolicy_tests_31.0 test.
- for all these types figure out where to map them by looking at
30.0.[ignore.]cil files and add approprite entries to 31.0.[ignore.]cil.

This change also enables treble_sepolicy_tests_31.0 and installs
31.0.cil mapping file onto the device.

Bug: 189161483
Test: m treble_sepolicy_tests_31.0
Test: m 31.0_compat_test
Test: m selinux_policy
Change-Id: I6264b9cf77b80543dfea93157b45b864157e2b14
2021-06-15 12:08:22 +00:00
..
26.0 Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) 2020-08-29 01:45:24 -07:00
27.0 Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) 2020-08-29 01:45:24 -07:00
28.0 Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) 2020-08-29 01:45:24 -07:00
29.0 Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) 2020-08-29 01:45:24 -07:00
30.0 IncFS: update SE policies for the new API 2021-01-19 12:57:15 -08:00
31.0 Add 31.0 mapping files 2021-06-15 12:08:22 +00:00