Skip to content
Snippets Groups Projects
Commit 9eb4de16 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes from topic "vintf_matrix_sepolicy"

* changes:
  Use PLATFORM_SEPOLICY_COMPAT_VERSIONS
  Move PLATFORM_SEPOLICY_VERSION to make/core/config.mk
parents 8c8ed1f0 617e8535
No related branches found
No related tags found
No related merge requests found
...@@ -2,30 +2,6 @@ LOCAL_PATH:= $(call my-dir) ...@@ -2,30 +2,6 @@ LOCAL_PATH:= $(call my-dir)
include $(LOCAL_PATH)/definitions.mk include $(LOCAL_PATH)/definitions.mk
# PLATFORM_SEPOLICY_VERSION is a number of the form "NN.m" with "NN" mapping to
# PLATFORM_SDK_VERSION and "m" as a minor number which allows for SELinux
# changes independent of PLATFORM_SDK_VERSION. This value will be set to
# 10000.0 to represent tip-of-tree development that is inherently unstable and
# thus designed not to work with any shipping vendor policy. This is similar in
# spirit to how DEFAULT_APP_TARGET_SDK is set.
# The minor version ('m' component) must be updated every time a platform release
# is made which breaks compatibility with the previous platform sepolicy version,
# not just on every increase in PLATFORM_SDK_VERSION. The minor version should
# be reset to 0 on every bump of the PLATFORM_SDK_VERSION.
sepolicy_major_vers := 27
sepolicy_minor_vers := 0
ifneq ($(sepolicy_major_vers), $(PLATFORM_SDK_VERSION))
$(error sepolicy_major_version does not match PLATFORM_SDK_VERSION, please update.)
endif
ifneq (REL,$(PLATFORM_VERSION_CODENAME))
sepolicy_major_vers := 10000
sepolicy_minor_vers := 0
endif
PLATFORM_SEPOLICY_VERSION := $(join $(addsuffix .,$(sepolicy_major_vers)), $(sepolicy_minor_vers))
sepolicy_major_vers :=
sepolicy_minor_vers :=
include $(CLEAR_VARS) include $(CLEAR_VARS)
# SELinux policy version. # SELinux policy version.
# Must be <= /sys/fs/selinux/policyvers reported by the Android kernel. # Must be <= /sys/fs/selinux/policyvers reported by the Android kernel.
...@@ -215,8 +191,7 @@ ifeq ($(PRODUCT_SEPOLICY_SPLIT),true) ...@@ -215,8 +191,7 @@ ifeq ($(PRODUCT_SEPOLICY_SPLIT),true)
# Use split SELinux policy # Use split SELinux policy
LOCAL_REQUIRED_MODULES += \ LOCAL_REQUIRED_MODULES += \
$(platform_mapping_file) \ $(platform_mapping_file) \
26.0.cil \ $(addsuffix .cil,$(PLATFORM_SEPOLICY_COMPAT_VERSIONS)) \
27.0.cil \
plat_pub_versioned.cil \ plat_pub_versioned.cil \
vendor_sepolicy.cil \ vendor_sepolicy.cil \
plat_sepolicy.cil \ plat_sepolicy.cil \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment