Merge "Expose selinux variables to Soong."

This commit is contained in:
Tri Vo 2018-05-09 01:57:14 +00:00 committed by Gerrit Code Review
commit c5934c55c7
2 changed files with 21 additions and 0 deletions

View file

@ -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

View file

@ -209,6 +209,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"`
}