@@ -4,8 +4,8 @@ name: CICD
44# spell-checker:ignore (env/flags) Awarnings Ccodegen Coverflow Cpanic Dwarnings RUSTDOCFLAGS RUSTFLAGS Zpanic CARGOFLAGS CLEVEL nodocs
55# spell-checker:ignore (jargon) SHAs deps dequote softprops subshell toolchain fuzzers dedupe devel profdata profraw Cprofile
66# spell-checker:ignore (people) Peltoche rivy Anson dawidd
7- # spell-checker:ignore (shell/tools) binutils choco clippy dmake esac fakeroot fdesc fdescfs gmake grcov halium lcov libclang libcrypto libfuse libssl limactl nextest nocross pacman popd printf pushd redoxer rsync rustc rustfmt rustup shopt sccache setfacl utmpdump xargs zstd
8- # spell-checker:ignore (misc) aarch alnum armhf bindir busytest coreutils defconfig DESTDIR gecos getenforce gnueabihf issuecomment maint manpages msys multisize noconfirm nofeatures nullglob onexitbegin onexitend pell runtest tempfile testsuite toybox userns uutils libsystemd codspeed wasip libexecinfo
7+ # spell-checker:ignore (shell/tools) binutils choco clippy dmake esac fakeroot fdesc fdescfs gmake grcov grubby halium lcov libclang libcrypto libfuse libssl limactl nextest nocross pacman popd printf pushd redoxer rsync rustc rustfmt rustup shopt sccache setfacl utmpdump xargs zstd
8+ # spell-checker:ignore (misc) aarch alnum armhf bindir busytest coreutils defconfig DESTDIR gecos getenforce gnueabihf issuecomment maint manpages msys multisize noconfirm nofeatures nullglob onexitbegin onexitend pell runtest tempfile testsuite toybox userns uutils libsystemd smackfs codspeed wasip libexecinfo
99
1010env :
1111 PROJECT_NAME : coreutils
@@ -975,17 +975,27 @@ jobs:
975975 - run : rsync -v -a -e ssh . lima-default:~/work/
976976 - name : Setup Rust and other build deps in VM
977977 run : |
978- lima sudo dnf install --nodocs cargo clippy gcc g++ git rust libselinux-devel clang-devel attr -y
978+ lima sudo dnf install --nodocs cargo clippy gcc g++ git grubby rust libselinux-devel clang-devel attr -y
979979 - name : Verify SELinux Status
980980 run : |
981981 lima getenforce
982982 lima ls -laZ /etc/selinux
983983 - name : Build and Test with SELinux
984984 run : |
985985 lima ls
986- lima bash -c "cd work && cargo test --features 'feat_selinux' --no-default-features"
987- - name : Lint with SELinux
988- run : lima bash -c "cd work && cargo clippy --all-targets --features 'feat_selinux' --no-default-features -- -D warnings"
986+ lima bash -c "cd work && cargo test --features 'feat_selinux,feat_smack' --no-default-features"
987+ - name : Lint with SELinux and SMACK support
988+ run : lima bash -c "cd work && cargo clippy --all-targets --features 'feat_selinux,feat_smack' --no-default-features -- -D warnings"
989+ - name : Restart Fedora VM with SELinux disabled
990+ run : |
991+ lima sudo grubby --update-kernel=ALL --args=selinux=0
992+ limactl stop default
993+ limactl start default
994+ - name : Verify SELinux and SMACK are disabled
995+ run : |
996+ lima bash -c 'test "$(getenforce)" = Disabled && test ! -e /sys/fs/smackfs'
997+ - name : Test disabled security context handling
998+ run : lima bash -c "cd work && cargo test --features 'feat_selinux,feat_smack' --no-default-features --test tests security_contexts_disabled"
989999
9901000 test_safe_traversal :
9911001 name : Safe Traversal Security Check
0 commit comments