Skip to content

Commit

Permalink
Add seccomp into feature flags of youki to be compiled in (#2924)
Browse files Browse the repository at this point in the history
* Add seccomp feature flag to youki

Signed-off-by: Kotaro Inoue <k.musaino@gmail.com>

* Add seccomp flag to the features test cases

Signed-off-by: Kotaro Inoue <k.musaino@gmail.com>

* fixup! Add seccomp flag to the features test cases

Signed-off-by: Kotaro Inoue <k.musaino@gmail.com>

---------

Signed-off-by: Kotaro Inoue <k.musaino@gmail.com>
  • Loading branch information
musaprg authored Oct 8, 2024
1 parent 4574e7a commit 95e4f6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/youki/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
10 changes: 10 additions & 0 deletions scripts/features_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit 95e4f6e

Please sign in to comment.