Merge "Add sepolicy related variables" am: fc8e9c7f00
am: d76ad94973
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1641780 Change-Id: I9fafcbed21d366dc93444a19eab8285ae2ce3faf
This commit is contained in:
@@ -1475,10 +1475,30 @@ func (c *deviceConfig) ShippingApiLevel() ApiLevel {
|
|||||||
return uncheckedFinalApiLevel(apiLevel)
|
return uncheckedFinalApiLevel(apiLevel)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *deviceConfig) BuildBrokenEnforceSyspropOwner() bool {
|
||||||
|
return c.config.productVariables.BuildBrokenEnforceSyspropOwner
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *deviceConfig) BuildBrokenTrebleSyspropNeverallow() bool {
|
||||||
|
return c.config.productVariables.BuildBrokenTrebleSyspropNeverallow
|
||||||
|
}
|
||||||
|
|
||||||
func (c *deviceConfig) BuildBrokenVendorPropertyNamespace() bool {
|
func (c *deviceConfig) BuildBrokenVendorPropertyNamespace() bool {
|
||||||
return c.config.productVariables.BuildBrokenVendorPropertyNamespace
|
return c.config.productVariables.BuildBrokenVendorPropertyNamespace
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *deviceConfig) RequiresInsecureExecmemForSwiftshader() bool {
|
||||||
|
return c.config.productVariables.RequiresInsecureExecmemForSwiftshader
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *config) SelinuxIgnoreNeverallows() bool {
|
||||||
|
return c.productVariables.SelinuxIgnoreNeverallows
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *deviceConfig) SepolicySplit() bool {
|
||||||
|
return c.config.productVariables.SepolicySplit
|
||||||
|
}
|
||||||
|
|
||||||
// The ConfiguredJarList struct provides methods for handling a list of (apex, jar) pairs.
|
// The ConfiguredJarList struct provides methods for handling a list of (apex, jar) pairs.
|
||||||
// Such lists are used in the build system for things like bootclasspath jars or system server jars.
|
// Such lists are used in the build system for things like bootclasspath jars or system server jars.
|
||||||
// The apex part is either an apex name, or a special names "platform" or "system_ext". Jar is a
|
// The apex part is either an apex name, or a special names "platform" or "system_ext". Jar is a
|
||||||
|
@@ -379,7 +379,15 @@ type productVariables struct {
|
|||||||
|
|
||||||
ShippingApiLevel *string `json:",omitempty"`
|
ShippingApiLevel *string `json:",omitempty"`
|
||||||
|
|
||||||
|
BuildBrokenEnforceSyspropOwner bool `json:",omitempty"`
|
||||||
|
BuildBrokenTrebleSyspropNeverallow bool `json:",omitempty"`
|
||||||
BuildBrokenVendorPropertyNamespace bool `json:",omitempty"`
|
BuildBrokenVendorPropertyNamespace bool `json:",omitempty"`
|
||||||
|
|
||||||
|
RequiresInsecureExecmemForSwiftshader bool `json:",omitempty"`
|
||||||
|
|
||||||
|
SelinuxIgnoreNeverallows bool `json:",omitempty"`
|
||||||
|
|
||||||
|
SepolicySplit bool `json:",omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func boolPtr(v bool) *bool {
|
func boolPtr(v bool) *bool {
|
||||||
|
Reference in New Issue
Block a user