aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTri Vo <trong@google.com>2018-05-08 19:15:31 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-05-08 19:15:31 -0700
commit64f343598aedac3ab0c4e28df62379c6261ee691 (patch)
treeb1e4ca6eea60aa328d93a889cb48eeac439d5f91
parent2b4168754aecd63c347da5adaab9b072cb53bb82 (diff)
parent368e0ab5a29bb24a1af686b92173271214961a36 (diff)
downloadbuild_soong-64f343598aedac3ab0c4e28df62379c6261ee691.tar.gz
build_soong-64f343598aedac3ab0c4e28df62379c6261ee691.tar.bz2
build_soong-64f343598aedac3ab0c4e28df62379c6261ee691.zip
Merge "Expose selinux variables to Soong." am: c5934c55c7
am: 368e0ab5a2 Change-Id: I2377ca5f20e8c7c7ffb6ef856f4081b03b66fe85
-rw-r--r--android/config.go16
-rw-r--r--android/variable.go5
2 files changed, 21 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go
index 40ba8c17..7ab5f563 100644
--- a/android/config.go
+++ b/android/config.go
@@ -799,6 +799,22 @@ func (c *deviceConfig) PgoAdditionalProfileDirs() []string {
return c.config.productVariables.PgoAdditionalProfileDirs
}
+func (c *deviceConfig) VendorSepolicyDirs() []string {
+ return c.config.productVariables.BoardVendorSepolicyDirs
+}
+
+func (c *deviceConfig) OdmSepolicyDirs() []string {
+ return c.config.productVariables.BoardOdmSepolicyDirs
+}
+
+func (c *deviceConfig) PlatPublicSepolicyDir() string {
+ return c.config.productVariables.BoardPlatPublicSepolicyDir
+}
+
+func (c *deviceConfig) PlatPrivateSepolicyDir() string {
+ return c.config.productVariables.BoardPlatPrivateSepolicyDir
+}
+
func (c *config) IntegerOverflowDisabledForPath(path string) bool {
if c.productVariables.IntegerOverflowExcludePaths == nil {
return false
diff --git a/android/variable.go b/android/variable.go
index 6ec8a500..f1aa36ec 100644
--- a/android/variable.go
+++ b/android/variable.go
@@ -224,6 +224,11 @@ type productVariables struct {
PgoAdditionalProfileDirs []string `json:",omitempty"`
+ BoardVendorSepolicyDirs []string `json:",omitempty"`
+ BoardOdmSepolicyDirs []string `json:",omitempty"`
+ BoardPlatPublicSepolicyDir string `json:",omitempty"`
+ BoardPlatPrivateSepolicyDir string `json:",omitempty"`
+
VendorVars map[string]map[string]string `json:",omitempty"`
}