Loading android/neverallow.go +10 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ func init() { AddNeverAllowRules(createMakefileGoalRules()...) AddNeverAllowRules(createInitFirstStageRules()...) AddNeverAllowRules(createProhibitFrameworkAccessRules()...) AddNeverAllowRules(createNoticeDeprecationRules()...) } // Add a NeverAllow rule to the set of rules to apply. Loading Loading @@ -238,6 +239,15 @@ func createProhibitFrameworkAccessRules() []Rule { } } func createNoticeDeprecationRules() []Rule { return []Rule{ NeverAllow(). WithMatcher("notice", isSetMatcherInstance). NotIn("vendor/linaro/linux-firmware/"). Because("notice has been replaced by licenses/default_applicable_licenses"), } } func neverallowMutator(ctx BottomUpMutatorContext) { m, ok := ctx.Module().(Module) if !ok { Loading Loading
android/neverallow.go +10 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ func init() { AddNeverAllowRules(createMakefileGoalRules()...) AddNeverAllowRules(createInitFirstStageRules()...) AddNeverAllowRules(createProhibitFrameworkAccessRules()...) AddNeverAllowRules(createNoticeDeprecationRules()...) } // Add a NeverAllow rule to the set of rules to apply. Loading Loading @@ -238,6 +239,15 @@ func createProhibitFrameworkAccessRules() []Rule { } } func createNoticeDeprecationRules() []Rule { return []Rule{ NeverAllow(). WithMatcher("notice", isSetMatcherInstance). NotIn("vendor/linaro/linux-firmware/"). Because("notice has been replaced by licenses/default_applicable_licenses"), } } func neverallowMutator(ctx BottomUpMutatorContext) { m, ok := ctx.Module().(Module) if !ok { Loading