Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6eb16f8f authored by Ivan Lozano's avatar Ivan Lozano Committed by Gerrit Code Review
Browse files

Merge "rust: Add missing Rust allow path modules."

parents 7061f792 03a94c48
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -26,9 +26,18 @@ var (
		"system/logging/rust",
		"system/security",
		"system/tools/aidl",
		"tools/security/fuzzing/example_rust_fuzzer",
	}

	DownstreamRustAllowedPaths = []string{
		// Add downstream allowed Rust paths here.
	}

	RustModuleTypes = []string{
		// Don't add rust_bindgen or rust_protobuf as these are code generation modules
		// and can be expected to be in paths without Rust code.
		"rust_benchmark",
		"rust_benchmark_host",
		"rust_binary",
		"rust_binary_host",
		"rust_library",
@@ -37,6 +46,7 @@ var (
		"rust_ffi",
		"rust_ffi_shared",
		"rust_ffi_static",
		"rust_fuzz",
		"rust_library_host",
		"rust_library_host_dylib",
		"rust_library_host_rlib",
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ func init() {

	android.AddNeverAllowRules(
		android.NeverAllow().
			NotIn(config.RustAllowedPaths...).
			NotIn(append(config.RustAllowedPaths, config.DownstreamRustAllowedPaths...)...).
			ModuleType(config.RustModuleTypes...))

	android.RegisterModuleType("rust_defaults", defaultsFactory)