The selinux shared tests
  • Shell 57.1%
  • Makefile 23.9%
  • C 18.5%
  • Python 0.4%
  • Perl 0.1%
Find a file
Akhil Kohli 5cd19cd9d3 selinux-policy/m4-bad-data: add M4 bad-data tests for modular policy builds
Add beakerlib/TMT coverage and fixtures for M4 preprocessing of modular
policy builds: .if to all_interfaces.conf, .te + interfaces to .tmp
(then checkmodule), and .fc to .mod.fc, using live support macros from a
selinux-policy checkout and a snapshotted modular M4 recipe.

Each case is its own rlRun phase in runtest.sh. Covers interface path
validation (including duplicates and broken gen_require), .te arity
edge cases, post-M4 checkmodule failures from bad interface expansion,
.fc path edge cases, M4-to-semodule_package E2E, and .fc content where
labeling validation is deferred to sefcontext_compile.

When SELINUX_POLICY_SRC is unset, clones fedora-selinux/selinux-policy
using a host-detected branch (f$VERSION_ID on Fedora, c${major}s
otherwise), overridable with SELINUX_POLICY_BRANCH.

Signed-off-by: Akhil Kohli <akkohli@redhat.com>
2026-08-11 11:16:21 +00:00
.fmf Update metadata to the list of approved attributes 2018-06-12 14:56:06 +02:00
checkpolicy Move oom-compiler-failure from gitlab 2026-06-29 10:41:30 +02:00
kernel kernel/avc_tracepoint: fix to work on AWS Graviton3 CPUs 2026-08-10 12:04:35 +02:00
libselinux Fix fail during install in /libselinux/setfiles-in-chroot-env 2026-07-22 11:13:34 +02:00
libsemanage fix: replace rlCheckMakefileRequires with rlCheckDependencies 2026-05-14 08:22:46 +00:00
libsepol Fix "adjust" statements 2025-10-09 20:22:22 +02:00
mcstrans Fix "adjust" statements 2025-10-09 20:22:22 +02:00
other test if python code produces deprecation messages related to SWIG 2026-01-12 13:05:48 +00:00
plans avoid inheriting top-level main.fmf metadata into plans 2026-05-11 17:11:13 +02:00
policycoreutils add missing IDs to recently created tests 2026-06-04 10:33:01 +02:00
selinux-policy selinux-policy/m4-bad-data: add M4 bad-data tests for modular policy builds 2026-08-11 11:16:21 +00:00
setools make tests use the selinux-policy library directly 2026-05-14 08:38:48 +00:00
setroubleshoot/independent-on-initscripts Fix "adjust" statements 2025-10-09 20:22:22 +02:00
main.fmf remove top-level main.fmf typo: tags 2026-05-11 17:11:13 +02:00
README.md adding gating guideline to README 2025-08-26 13:03:09 +00:00

SELinux tests

This repository contains set of test for SELinux kernel, userspace and policy. Tests are written using beakerlib with TMT Metadata Specification.

Gating Guidelines

Test tiers define a test's priority for our gating process.

  • tier: 1: Critical tests that must pass for any code merge.
  • tier: 2: Important but non-critical tests.
  • tier: 3: Non-critical tests.

All other tier metadata (e.g., tag:Tier1) is now deprecated.

Plans

$ tmt plans
Found 5 plans: /plans/ci, /plans/reboot, /plans/tier1, /plans/tier2 and /plans/tier3.

Usage

Run tier1 on localhost:

# tmt run provision -h local prepare plans -n /plans/tier1 discover execute
# tmt run -l report -h display -v