From 95e4f6e4b101786566c399b490dab821c2d81161 Mon Sep 17 00:00:00 2001 From: Kotaro Inoue Date: Tue, 8 Oct 2024 12:21:53 +0900 Subject: [PATCH] Add seccomp into feature flags of youki to be compiled in (#2924) * Add seccomp feature flag to youki Signed-off-by: Kotaro Inoue * Add seccomp flag to the features test cases Signed-off-by: Kotaro Inoue * fixup! Add seccomp flag to the features test cases Signed-off-by: Kotaro Inoue --------- Signed-off-by: Kotaro Inoue --- crates/youki/Cargo.toml | 1 + scripts/features_test.sh | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/crates/youki/Cargo.toml b/crates/youki/Cargo.toml index 78b33ded1..a8ee044f2 100644 --- a/crates/youki/Cargo.toml +++ b/crates/youki/Cargo.toml @@ -16,6 +16,7 @@ systemd = ["libcgroups/systemd", "libcontainer/systemd", "v2"] v2 = ["libcgroups/v2", "libcontainer/v2"] v1 = ["libcgroups/v1", "libcontainer/v1"] cgroupsv2_devices = ["libcgroups/cgroupsv2_devices", "libcontainer/cgroupsv2_devices"] +seccomp = ["libcontainer/libseccomp"] wasm-wasmer = ["wasmer", "wasmer-wasix"] wasm-wasmedge = ["wasmedge-sdk/standalone", "wasmedge-sdk/static"] diff --git a/scripts/features_test.sh b/scripts/features_test.sh index 4d2eb185a..7727184ba 100755 --- a/scripts/features_test.sh +++ b/scripts/features_test.sh @@ -13,6 +13,11 @@ test_package_features "libcontainer" "v2" test_package_features "libcontainer" "systemd" test_package_features "libcontainer" "v2 cgroupsv2_devices" test_package_features "libcontainer" "systemd cgroupsv2_devices" +test_package_features "libcontainer" "v1 libseccomp" +test_package_features "libcontainer" "v2 libseccomp" +test_package_features "libcontainer" "systemd libseccomp" +test_package_features "libcontainer" "v2 cgroupsv2_devices libseccomp" +test_package_features "libcontainer" "systemd cgroupsv2_devices libseccomp" test_package_features "libcgroups" "v1" test_package_features "libcgroups" "v2" @@ -31,5 +36,10 @@ test_features "v2" test_features "systemd" test_features "v2 cgroupsv2_devices" test_features "systemd cgroupsv2_devices" +test_features "v1 seccomp" +test_features "v2 seccomp" +test_features "systemd seccomp" +test_features "v2 cgroupsv2_devices seccomp" +test_features "systemd cgroupsv2_devices seccomp" exit 0