From: Stéphane Graber Date: Sat, 30 Aug 2025 04:45:12 +0000 (-0400) Subject: github: Enable landlock in tests X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f16585267bb9e22cb1936d1d8852d5cf74f44de;p=thirdparty%2Flxc.git github: Enable landlock in tests Signed-off-by: Stéphane Graber --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c2c8ff39f..d42f9bd4f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -87,6 +87,12 @@ jobs: env: CC: ${{ matrix.compiler }} run: | + # Landlock support + landlock=false + if [ -e /usr/include/linux/landlock.h ]; then + landlock=true + fi + # Standard build if [ "${{ matrix.variant }}" = "default" ]; then meson setup build \ @@ -94,6 +100,7 @@ jobs: -Dtests=true \ -Dpam-cgroup=true \ -Dtools-multicall=true \ + -Dlandlock-monitor=${landlock} \ -Dwerror=true \ -Db_lto_mode=default elif [ "${{ matrix.variant }}" = "sanitizer" ]; then