Commit graph

16 commits

Author SHA1 Message Date
Ondrej Mosnacek
fbff736aea selinux-testuite: add a patch to fix SCTP test issue
This fixes failing CKI stable kernel testing.
See: https://patchwork.kernel.org/patch/11400391/

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-02-25 10:46:46 +01:00
Ondrej Mosnacek
7c17683e19 selinux-testsuite: bump upstream ref
This pulls in new filesystem tests + a fix for building under GCC 10.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-01-25 14:56:21 +01:00
Ondrej Mosnacek
a0b957b7d7 selinux-testsuite: bump upstream commit ref
The only significant change that this pulls in is 7fd02b152f9f
("tests/prlimit: avoid invalid limit combinations"), which fixes false
test failures in some environments.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-01-14 13:01:40 +01:00
Ondrej Mosnacek
af8cdd2711 selinux-testsuite: enable PATH records while running
This helps when debugging unexpected AVCs. This was formerly done by the
selinux-policy/common library, which the test doesn't use any more, so
let's add this useful feature back with just four simple commands.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-01-02 13:22:13 +01:00
Ondrej Mosnacek
c377fe7bc1 selinux-testsuite: extend the CKI workaround
CKI RHEL-8 builds are cross-compiled badly, so disable module_load also
when the kernel-devel built helper programs are unusable.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-28 13:46:20 +01:00
Ondrej Mosnacek
221a043be0 selinux-testsuite: do not check kernel RPM
The RPM is not important, what is important is the running kernel (and
that can't be missing, obviously) and its version is already shown
elsewhere.

Moe importantly, in Fedora CI the 'kernel' RPM may not even be there, so
the test would warn about it, causing failures.

Reported-by: Lukas Vrabec <lvrabec@redhat.com>
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-22 15:16:41 +01:00
Ondrej Mosnacek
eb84c723c3 selinux-testsuite: move to Tier 2
...because tier 1 tests are ran for all SELinux components, which is
alittle too often for this not-so-lightweight test.

Suggested-by: Petr Lautrbach <plautrba@redhat.com>
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-22 15:16:41 +01:00
Ondrej Mosnacek
c938713b3c selinux-testsuite: do not use non-existent function
There is no rlWarn, should have been rlLogWarning.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-22 15:16:41 +01:00
Ondrej Mosnacek
bc0203d06f selinux-testsuite: enable pipefail when applying patches
We want the command to fail if curl fails.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-22 15:16:41 +01:00
Ondrej Mosnacek
824ac3234f selinux-testsuite: bump upstream commit ref
This adds three new tests: tun_tap, socketpair, and perf.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-22 15:14:49 +01:00
Ondrej Mosnacek
50a1ccb0d5 selinux-testsuite: skip module_load test when we can't run it
CKI mainline kernel packages don't currently provide the files necessary
to build kernel modules. Work around it by disabling the module_load
subtest when the files are missing.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-13 10:27:52 +01:00
Ondrej Mosnacek
905952c0a5 selinux-testsuite: use correct selinuxfs mount
On RHEL-6 selinuxfs is at /selinux instead of /sys/fs/selinux.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-13 10:27:47 +01:00
Ondrej Mosnacek
06d0fd4627 selinux-testsuite: do make clean silently
Makes it easier to scroll through the logs and exposes some error
output on RHEL-6.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-13 10:19:52 +01:00
Ondrej Mosnacek
45f2938c61 selinux-testsuite: consolidate network timeouts
There are several places in the testuite that set timeouts for network
operations. They use different values in different places and
particularly for the SCTP test the value is too small on some machines
and often leads to false-positive test failures.

Since the right value depends on the environment, rather than proposing
to change the value to some guessed number upstream, let's just tweak
the number from the wrapper and suggest updating the numbers upstream
once we find a "proven" good value.

I'm setting the default to 4 secs - 1 second higher than the old value
in the inet_socket test, where we also (very) sporadically get failures.
The most problematic SCTP subtest had 2 seconds timeout before.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-11 09:22:45 +01:00
Ondrej Mosnacek
bff670d22b selinux-testuite: add iptables to requires
It is usually already installed so this hasn't been spotted before,
however on Fedora CI the missing requirement causes a failure.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-09 14:08:11 +01:00
Ondrej Mosnacek
8d56126586 kernel: Add selinux-testsuite test
Add the beakerlib wrapper for selinux-testuite so it can be used from
elsewhere.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-12-06 13:42:36 +01:00