Skip to content

Commit b41d41e

Browse files
committed
redhat: add more namespace selftests to kernel-modules-internal package
Upstream Status: RHEL-only JIRA: https://issues.redhat.com/browse/RHEL-95481 As the time of this commit there is no targeted testing in CKI for the namespace subsystem. Two other kselftests are in the process of being enabled: pid_namespace and rlimits. Adding two more, timens and pidfd will allow us to increase targetting CKI testing even further. ARK commit: 1741173e9e03859d5340cfbead46f1acc19e3952 Signed-off-by: Joel Savitz <jsavitz@redhat.com>
1 parent 0568128 commit b41d41e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

redhat/kernel.spec.template

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3254,7 +3254,7 @@ pushd tools/testing/selftests
32543254
%undefine _fortify_level
32553255
export CFLAGS="%{build_cflags}"
32563256

3257-
TARGETS="bpf cgroup mm net net/forwarding net/mptcp net/netfilter net/packetdrill tc-testing memfd drivers/net/bonding iommu cachestat pid_namespace rlimits"
3257+
TARGETS="bpf cgroup mm net net/forwarding net/mptcp net/netfilter net/packetdrill tc-testing memfd drivers/net/bonding iommu cachestat pid_namespace rlimits timens pidfd"
32583258
%{make} %{?_smp_mflags} EXTRA_CFLAGS="${RPM_OPT_FLAGS}" EXTRA_CXXFLAGS="${RPM_OPT_FLAGS}" EXTRA_LDFLAGS="%{__global_ldflags}" ARCH=$Arch V=1 TARGETS="$TARGETS" SKIP_TARGETS="" $force_targets VMLINUX_H="${RPM_VMLINUX_H}"
32593259

32603260
# Restore the original level of source fortification
@@ -3667,6 +3667,18 @@ find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/pid_namespac
36673667
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/pid_namespace/{} \;
36683668
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/pid_namespace/{} \;
36693669
popd
3670+
# install timens selftests
3671+
pushd tools/testing/selftests/timens
3672+
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/timens/{} \;
3673+
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/timens/{} \;
3674+
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/timens/{} \;
3675+
popd
3676+
# install pidfd selftests
3677+
pushd tools/testing/selftests/pidfd
3678+
find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/pidfd/{} \;
3679+
find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/pidfd/{} \;
3680+
find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/pidfd/{} \;
3681+
popd
36703682
%endif
36713683

36723684
###

0 commit comments

Comments
 (0)