blob: c2c3550a55f2bf96bd9157e97b3603a7677035fc [file] [log] [blame] [edit]
# Copyright 2023 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("selinux") {
edition = "2021"
with_unit_tests = true
deps = [
"//src/starnix/lib/starnix-lock",
"//third_party/rust_crates:bitflags",
]
test_deps = [
"//src/lib/fuchsia",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:rand",
]
sources = [
"src/access_vector_cache.rs",
"src/lib.rs",
"src/security_server.rs",
]
}
fuchsia_unittest_package("selinux-tests") {
deps = [ ":selinux_test" ]
}
group("tests") {
testonly = true
deps = [ ":selinux-tests" ]
}