Only maintain maps between current and previous selinux versions.
New maintenance scheme for mapping files: Say, V is the current SELinux platform version, then at any point in time we only maintain (V->V-1) mapping. (V->V-n) map is constructed from top (V->V-n+1) and bottom (V-n+1->V-n) without changes to previously maintained mapping files. Caveats: - 26.0.cil doesn't technically represent 27.0->26.0 map, but rather current->26.0. We'll fully migrate to the scheme with future releases. Bug: 67510052 Test: adding new public type only requires changing the latest compat map Change-Id: Iab5564e887ef2c8004cb493505dd56c6220c61f8
Showing
- .gitignore 2 additions, 0 deletions.gitignore
- Android.bp 24 additions, 9 deletionsAndroid.bp
- build/soong/cil_compat_map.go 85 additions, 13 deletionsbuild/soong/cil_compat_map.go
- private/compat/26.0/26.0.ignore.cil 7 additions, 4 deletionsprivate/compat/26.0/26.0.ignore.cil
- private/compat/27.0/27.0.ignore.cil 7 additions, 2 deletionsprivate/compat/27.0/27.0.ignore.cil
- private/compat/28.0/28.0.ignore.cil 3 additions, 1 deletionprivate/compat/28.0/28.0.ignore.cil
- tests/Android.bp 8 additions, 0 deletionstests/Android.bp
- tests/combine_maps.py 66 additions, 0 deletionstests/combine_maps.py
- tests/mini_parser.py 35 additions, 1 deletiontests/mini_parser.py
- tests/treble_sepolicy_tests.py 4 additions, 3 deletionstests/treble_sepolicy_tests.py
- treble_sepolicy_tests_for_release.mk 3 additions, 2 deletionstreble_sepolicy_tests_for_release.mk
Loading
Please register or sign in to comment