Compare commits

..

31 commits

Author SHA1 Message Date
RH Container Bot
e37c04b4b2 auto bump to v2.189.0
(cherry picked from commit 9d8732d586)
2022-07-14 15:09:25 +00:00
RH Container Bot
352177f231 auto bump to v2.188.0
(cherry picked from commit 381c043b46)
2022-06-23 15:11:36 +00:00
Lokesh Mandvekar
f3b57e6432 update Version field per changes in rpm autobuilder
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit b25bea1555)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-05-27 13:29:25 -04:00
RH Container Bot
f0ac009ae2 auto bump to v2.187.0
(cherry picked from commit 49a8b59d81)
2022-05-24 17:12:19 +00:00
RH Container Bot
f53684e40c auto bump to v2.186.0
(cherry picked from commit 7f88c4f20c)
2022-05-24 15:11:44 +00:00
Lokesh Mandvekar
dfab0607c6 Resolves: #2079800 - rebuild with latest selinux-policy
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-04-28 09:25:27 -04:00
Lokesh Mandvekar
d05c7b6869 remove unwanted file entries from sources
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit 62a54b91e4)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-04-21 14:19:28 -04:00
RH Container Bot
70c3fcfabd auto bump to v2.183.0
(cherry picked from commit a16983f2a4)
2022-04-18 11:10:04 +00:00
David King
0164f6007e Rebuild against selinux-policy (#2070764) 2022-04-15 11:16:25 +01:00
RH Container Bot
ddec1699bb auto bump to v2.181.0
(cherry picked from commit 01159dc8d3)
2022-03-25 19:09:04 +00:00
Lokesh Mandvekar
84c1a34f3e bump to v2.180.0
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit 370ad1e8ea)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-03-07 09:21:05 -05:00
Lokesh Mandvekar
5211e4cd76 bump to v2.179.1
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit f52aec2706)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-03-01 10:44:56 -05:00
Lokesh Mandvekar
2ce803b6b8 bump to v2.178.0
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit fc3b887a98)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-03-01 10:44:51 -05:00
Lokesh Mandvekar
bcd1e14478 bump to v2.177.0
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit 0cbd2b83da)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-02-09 15:37:04 -05:00
Ed Santiago
c1a61f1626 Use podman in gating tests
Nothing complicated, just a very simple 'run' command.
Currently fails, which is good, it means this test
would have caught today's crisis[1]. Unfortunately
it fails with no useful info whatsoever: the test
result simply shows ERROR. I'm not sure there's much
I can do about this, since podman itself is silent
on the failure. (It'd be nice if gating tests at least
showed us the exit status).

 [1]  https://github.com/containers/container-selinux/issues/169

Signed-off-by: Ed Santiago <santiago@redhat.com>
(cherry picked from commit 045c776835)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-02-08 15:32:23 -05:00
Lokesh Mandvekar
04a6e5d44f bump to v2.176.0
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit b80cce1407)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-02-03 09:07:07 -05:00
Lokesh Mandvekar
dd198e1b4d bup to v2.174.0
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit a011a4e035)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-02-01 14:50:27 -05:00
Lokesh Mandvekar
e7d824bc5b switch to autospec
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit 6e8d3c1e67)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-01-27 13:51:33 -05:00
RH Container Bot
8a5cfd2b07 container-selinux-2:2.173.1-1
autobuilt v2.173.1

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
(cherry picked from commit 258efbfe5e)
2022-01-18 16:11:04 +00:00
RH Container Bot
7339829764 container-selinux-2:2.173.0-1
autobuilt v2.173.0

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
(cherry picked from commit 237d59707c)
2022-01-11 12:10:33 +00:00
RH Container Bot
5b440ca37c container-selinux-2:2.172.1-1
autobuilt v2.172.1

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
(cherry picked from commit a57b6ae995)
2022-01-06 21:09:10 +00:00
RH Container Bot
2cda918691 container-selinux-2:2.172.0-1
autobuilt v2.172.0

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
(cherry picked from commit 8bae2f2e51)
2021-11-22 23:07:33 +00:00
RH Container Bot
8d62deed23 container-selinux-2:2.171.0-1
autobuilt v2.171.0

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
(cherry picked from commit fd5c0b5da2)
2021-11-10 23:12:01 +00:00
Daniel J Walsh
4d8a37dd87
Add conflicts k3s-selinux <= 0.4-1 to force upgrade 2021-10-15 14:54:19 -04:00
RH Container Bot
2e9d01b94f container-selinux-2:2.170.0-1
autobuilt v2.170.0

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
(cherry picked from commit 156b58ad36)
2021-10-05 19:55:01 +00:00
RH Container Bot
c727edbefc container-selinux-2:2.169.0-1
autobuilt v2.169.0

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
(cherry picked from commit 04f47a764a)
2021-09-27 09:44:18 -04:00
Vit Mojzis
1f42e5aa1f Start shipping udica policy templates
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
(cherry picked from commit c1c245c063)
2021-09-27 09:44:14 -04:00
RH Container Bot
8887fed4e7 container-selinux-2:2.168.0-1
autobuilt v2.168.0

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
(cherry picked from commit f9aa97e6da)
2021-09-13 14:25:11 -04:00
Lokesh Mandvekar
9f246fff8f container-selinux-2:2.167.0-2
- use upstream tag instead of commits, fix autobuild macros

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit c287dbae6f)
2021-09-10 09:33:45 -04:00
RH Container Bot
4ece62ccf6 container-selinux-2:2.167.0-1
autobuilt v2.167.0

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
2021-08-26 20:03:39 +00:00
RH Container Bot
41ed5e8a01 container-selinux-2:2.165.1-1
autobuilt v2.165.1

Signed-off-by: RH Container Bot <rhcontainerbot@fedoraproject.org>
2021-08-25 17:19:45 +00:00
13 changed files with 53 additions and 380 deletions

View file

@ -1 +0,0 @@
1

56
.gitignore vendored
View file

@ -187,59 +187,3 @@
/v2.187.0.tar.gz
/v2.188.0.tar.gz
/v2.189.0.tar.gz
/v2.190.0.tar.gz
/v2.190.1.tar.gz
/v2.191.0.tar.gz
/v2.193.0.tar.gz
/v2.195.0.tar.gz
/v2.195.1.tar.gz
/v2.197.0.tar.gz
/v2.198.0.tar.gz
/v2.199.0.tar.gz
/v2.200.0.tar.gz
/v2.201.0.tar.gz
/v2.202.0.tar.gz
/v2.203.0.tar.gz
/v2.204.0.tar.gz
/v2.205.0.tar.gz
/v2.206.0.tar.gz
/v2.208.0.tar.gz
/v2.209.0.tar.gz
/v2.210.0.tar.gz
/v2.211.0.tar.gz
/v2.211.1.tar.gz
/v2.213.0.tar.gz
/v2.215.0.tar.gz
/v2.216.0.tar.gz
/v2.217.0.tar.gz
/v2.218.0.tar.gz
/v2.219.0.tar.gz
/v2.221.tar.gz
/v2.221.0.tar.gz
/v2.221.1.tar.gz
/v2.222.0.tar.gz
/v2.224.0.tar.gz
/v2.226.0.tar.gz
/v2.227.0.tar.gz
/v2.228.0.tar.gz
/v2.228.1.tar.gz
/v2.229.0.tar.gz
/v2.229.1.tar.gz
/v2.230.0.tar.gz
/v2.231.0.tar.gz
/packit-tmt-bodhi-reuse.zip
/v2.232.1.tar.gz
/v2.233.0.tar.gz
/v2.234.1.tar.gz
/v2.234.2.tar.gz
/v2.235.0.tar.gz
/v2.236.0.tar.gz
/v2.237.0.tar.gz
/v2.238.0.tar.gz
/v2.239.0.tar.gz
/v2.240.0.tar.gz
/v2.241.0.tar.gz
/v2.242.0.tar.gz
/v2.243.0.tar.gz
/v2.244.0.tar.gz
/v2.245.0.tar.gz

View file

@ -1,145 +0,0 @@
---
# See the documentation for more information:
# https://packit.dev/docs/configuration/
downstream_package_name: container-selinux
upstream_tag_template: v{version}
# Ref: https://packit.dev/docs/configuration#files_to_sync
files_to_sync:
- src: rpm/gating.yaml
dest: gating.yaml
delete: true
- src: plans/
dest: plans/
delete: true
mkpath: true
- src: test/
dest: test/
delete: true
mkpath: true
- src: .fmf/
dest: .fmf/
delete: true
- .packit.yaml
packages:
container-selinux-fedora:
pkg_tool: fedpkg
specfile_path: rpm/container-selinux.spec
container-selinux-centos:
pkg_tool: centpkg
specfile_path: rpm/container-selinux.spec
container-selinux-eln:
specfile_path: rpm/container-selinux.spec
srpm_build_deps:
- make
jobs:
- job: copr_build
trigger: pull_request
packages: [container-selinux-fedora]
notifications: &copr_build_failure_notification
failure_comment:
message: "Ephemeral COPR build failed. @containers/packit-build please check."
enable_net: true
# container-selinux is noarch so we only need to test on one arch
targets: &fedora_copr_targets
- fedora-all-x86_64
- fedora-all-aarch64
- job: copr_build
trigger: pull_request
packages: [container-selinux-eln]
notifications: *copr_build_failure_notification
enable_net: true
targets: &eln_copr_targets
- fedora-eln-x86_64
- fedora-eln-aarch64
- job: copr_build
trigger: pull_request
packages: [container-selinux-centos]
notifications: *copr_build_failure_notification
enable_net: true
targets: &centos_copr_targets
- centos-stream-9-x86_64
- centos-stream-9-aarch64
- centos-stream-10-x86_64
- centos-stream-10-aarch64
# Run on commit to main branch
# Build targets managed in copr settings
- job: copr_build
trigger: commit
packages: [container-selinux-fedora]
notifications:
failure_comment:
message: "podman-next COPR build failed. @containers/packit-build please check."
branch: main
owner: rhcontainerbot
project: podman-next
enable_net: true
# All tests specified in the `/plans/` subdir
# Tests for Fedora
- job: tests
trigger: pull_request
packages: [container-selinux-fedora]
notifications: &test_failure_notification
failure_comment:
message: "Tests failed. @containers/packit-build please check."
targets: *fedora_copr_targets
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-$releasever/rhcontainerbot-podman-next-fedora-$releasever.repo
# Tests for Fedora
- job: tests
trigger: pull_request
packages: [container-selinux-eln]
notifications: *test_failure_notification
targets: *eln_copr_targets
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-eln/rhcontainerbot-podman-next-fedora-eln.repo
# Tests for CentOS Stream
- job: tests
trigger: pull_request
packages: [container-selinux-centos]
notifications: *test_failure_notification
targets: *centos_copr_targets
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/centos-stream-$releasever/rhcontainerbot-podman-next-centos-stream-$releasever.repo
- job: propose_downstream
trigger: release
packages: [container-selinux-fedora]
dist_git_branches: &fedora_targets
- fedora-all
- job: propose_downstream
trigger: release
packages: [container-selinux-centos]
dist_git_branches:
- c10s
- job: koji_build
trigger: commit
packages: [container-selinux-fedora]
dist_git_branches: *fedora_targets
- job: bodhi_update
trigger: commit
packages: [container-selinux-fedora]
dist_git_branches:
- fedora-branched # rawhide updates are created automatically

View file

@ -1,3 +0,0 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.13.0.

View file

@ -1,7 +1,13 @@
%global debug_package %{nil}
%global debug_package %{nil}
# container-selinux
%global git0 https://github.com/containers/container-selinux
%global built_tag v2.189.0
# container-selinux stuff (prefix with ds_ for version/release etc.)
# Some bits borrowed from the openstack-selinux package
%global selinuxtype targeted
%global moduletype services
%global modulenames container
@ -10,37 +16,15 @@
# Format must contain '$x' somewhere to do anything useful
%global _format() export %1=""; for x in %{modulenames}; do %1+=%2; %1+=" "; done;
# RHEL < 10 and Fedora < 40 use file context entries in /var/run
%if %{defined rhel} && 0%{?rhel} < 10 || %{defined fedora} && 0%{?fedora} < 40
%define legacy_var_run 1
%endif
# https://github.com/containers/container-selinux/issues/203
%if %{!defined fedora} && %{!defined rhel} || %{defined rhel} && 0%{?rhel} <= 9
%define no_user_namespace 1
%endif
# set copr_build is more intuitive than copr_username
%if %{defined copr_username} && "%{copr_username}" == "rhcontainerbot" && "%{copr_projectname}" == "podman-next"
%define next_build 1
%endif
# Hooked up to autobuilder, please check with @lsm5 before updating
Name: container-selinux
# Set different Epoch for rhcontainerbot/podman-next copr build
%if %{defined next_build}
Epoch: 102
%else
Epoch: 4
%endif
# Keep Version in upstream specfile at 0. It will be automatically set
# to the correct value by Packit for copr and koji builds.
# IGNORE this comment if you're looking at it in dist-git.
Version: 2.245.0
Epoch: 2
Version: 2.189.0
Release: %autorelease
License: GPL-2.0-only
URL: https://github.com/containers/%{name}
License: GPLv2
URL: %{git0}
Summary: SELinux policies for container runtimes
Source0: %{url}/archive/v%{version}.tar.gz
Source0: %{git0}/archive/%{built_tag}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: git-core
@ -50,8 +34,7 @@ BuildRequires: selinux-policy-devel >= %_selinux_policy_version
# RE: rhbz#1195804 - ensure min NVR for selinux-policy
Requires: selinux-policy >= %_selinux_policy_version
Requires(post): selinux-policy-base >= %_selinux_policy_version
Requires(post): selinux-policy-any >= %_selinux_policy_version
Recommends: selinux-policy-targeted >= %_selinux_policy_version
Requires(post): selinux-policy-targeted >= %_selinux_policy_version
Requires(post): policycoreutils
Requires(post): libselinux-utils
Requires(post): sed
@ -65,18 +48,7 @@ Conflicts: k3s-selinux <= 0.4-1
SELinux policy modules for use with container runtimes.
%prep
%autosetup -Sgit %{name}-%{version}
sed -i 's/^man: install-policy/man:/' Makefile
sed -i 's/^install: man/install:/' Makefile
%if %{defined no_user_namespace}
sed -i '/user_namespace/d' container.te
%endif
%if %{defined legacy_var_run}
sed -i 's|^/run/|/var/run/|' container.fc
%endif
%autosetup -Sgit
%build
make
@ -84,10 +56,19 @@ make
%install
# install policy modules
%_format MODULES $x.pp.bz2
%{__make} DATADIR=%{buildroot}%{_datadir} SYSCONFDIR=%{buildroot}%{_sysconfdir} install install.udica-templates install.selinux-user
install -d %{buildroot}%{_datadir}/selinux/packages
install -d -p %{buildroot}%{_datadir}/selinux/devel/include/services
install -p -m 644 container.if %{buildroot}%{_datadir}/selinux/devel/include/services
install -m 0644 $MODULES %{buildroot}%{_datadir}/selinux/packages
install -d %{buildroot}/%{_datadir}/containers/selinux
install -m 644 container_contexts %{buildroot}/%{_datadir}/containers/selinux/contexts
install -d %{buildroot}%{_datadir}/udica/templates
install -m 0644 udica-templates/*.cil %{buildroot}%{_datadir}/udica/templates
%check
%pre
%selinux_relabel_pre
%selinux_relabel_pre -s %{selinuxtype}
%post
# Install all modules in a single transaction
@ -95,24 +76,21 @@ if [ $1 -eq 1 ]; then
%{_sbindir}/setsebool -P -N virt_use_nfs=1 virt_sandbox_use_all_caps=1
fi
%_format MODULES %{_datadir}/selinux/packages/$x.pp.bz2
%{_sbindir}/semodule -n -s %{selinuxtype} -r container 2> /dev/null
%{_sbindir}/semodule -n -s %{selinuxtype} -d docker 2> /dev/null
%{_sbindir}/semodule -n -s %{selinuxtype} -d gear 2> /dev/null
%selinux_modules_install -s %{selinuxtype} $MODULES
. %{_sysconfdir}/selinux/config
%{_sbindir}/semodule -n -s ${SELINUXTYPE} -r container 2> /dev/null
%{_sbindir}/semodule -n -s ${SELINUXTYPE} -d docker 2> /dev/null
%{_sbindir}/semodule -n -s ${SELINUXTYPE} -d gear 2> /dev/null
%selinux_modules_install -s ${SELINUXTYPE} $MODULES
sed -e "\|container_file_t|h; \${x;s|container_file_t||;{g;t};a\\" -e "container_file_t" -e "}" -i /etc/selinux/${SELINUXTYPE}/contexts/customizable_types
sed -e "\|container_file_t|h; \${x;s|container_file_t||;{g;t};a\\" -e "container_file_t" -e "}" -i /etc/selinux/${SELINUXTYPE}/contexts/customizable_types
matchpathcon -qV %{_sharedstatedir}/containers || restorecon -R %{_sharedstatedir}/containers &> /dev/null || :
%postun
if [ $1 -eq 0 ]; then
%selinux_modules_uninstall %{modulenames} docker
%selinux_modules_uninstall -s %{selinuxtype} %{modulenames} docker
fi
%posttrans
%selinux_relabel_post
# Empty placeholder check to silence rpmlint
%check
%selinux_relabel_post -s %{selinuxtype}
#define license tag if not already defined
%{!?_licensedir:%global license %doc}
@ -122,14 +100,10 @@ fi
%{_datadir}/selinux/*
%dir %{_datadir}/containers/selinux
%{_datadir}/containers/selinux/contexts
%dir %{_datadir}/udica
%dir %{_datadir}/udica/templates/
%{_datadir}/udica/templates/*
# Ref: https://bugzilla.redhat.com/show_bug.cgi?id=2209120
%{_mandir}/man8/container_selinux.8.gz
%{_sysconfdir}/selinux/targeted/contexts/users/container_u
%ghost %verify(not mode) %{_selinux_store_path}/targeted/active/modules/200/%{modulenames}
%ghost %verify(not mode) %{_selinux_store_path}/mls/active/modules/200/%{modulenames}
# Currently shipped in selinux-policy-doc
#%%{_datadir}/man/man8/container_selinux.8.gz
%triggerpostun -- container-selinux < 2:2.162.1-3
if %{_sbindir}/selinuxenabled ; then

View file

@ -1,14 +1,6 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_stable
- bodhi_update_push_testing
decision_context: bodhi_update_push_stable
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules: []

View file

@ -1,30 +0,0 @@
discover:
how: fmf
execute:
how: tmt
prepare:
- how: feature
epel: enabled
# TODO: Revisit this once https://github.com/teemtee/tmt/issues/3990 is in place.
# FIXME: For whatever reason, CentOS Stream envs end up upgrading container-selinux
# from podman-next instead of using the one installed by Packit. This apparently should
# be easier to handle once tmt#3990 is done. Things work as expected on Fedora already.
- when: initiator == packit
how: shell
script: |
COPR_REPO_FILE="/etc/yum.repos.d/*podman-next*.repo"
if compgen -G $COPR_REPO_FILE > /dev/null; then
sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE
fi
/basic_check:
discover+:
test: /test/basic_check
/podman_rootful_system:
discover+:
test: /test/podman_rootful_system
/podman_rootless_system:
discover+:
test: /test/podman_rootless_system

View file

@ -1,9 +0,0 @@
/:
inherit: false
summary: Run tmt's integration tests
plan:
import:
url: https://github.com/teemtee/tmt
path: /plans/friends
name: /podman

View file

@ -1 +1 @@
SHA512 (v2.245.0.tar.gz) = 0bc85980780631ceccb38f2fde64ff7f3792be18d4501806532f097deedde70f446e2389c543dd78e9087b45cd1a6916c0e096e6ea42dd77ac377ad4111b7db2
SHA512 (v2.189.0.tar.gz) = 0c3d1d3c0b53281fbcf08580e0567a3c8fb297b59f9c51424ffd03da38a72f25da129899b6f36bae446bd5653e105cd9a71418e0cdeee5057315a31322e71bdc

View file

@ -1,34 +0,0 @@
require:
- attr
- container-selinux
- podman-tests
- policycoreutils
recommend:
- bats
/basic_check:
summary: Run basic checks
test: |
semodule --list=full | grep container
semodule -B
rpm -Vqf /var/lib/selinux/*/active/modules/200/container
/podman_rootful_system:
summary: Run SELinux specific Podman system tests
test: bash ./podman-rootful-tests.sh
/podman_rootless_system:
summary: Run rootless Podman system tests
test: bash ./podman-rootless-tests.sh
require+:
- passt
- passt-selinux
environment:
ROOTLESS_USER: "fedora"
adjust:
- when: distro == centos-stream
environment+:
ROOTLESS_USER: "ec2-user"
- when: distro == rhel
environment+:
ROOTLESS_USER: "cloud-user"

View file

@ -1,16 +0,0 @@
#!/usr/bin/env bash
set -exo pipefail
cat /etc/redhat-release
if [[ "$(id -u)" -ne 0 ]];then
echo "Please run as superuser"
exit 1
fi
# Print versions of distro and installed packages
rpm -q bats container-selinux podman podman-tests policycoreutils selinux-policy
# Run podman system tests
bats /usr/share/podman/test/system/410-selinux.bats

View file

@ -1,15 +0,0 @@
#!/usr/bin/env bash
set -exo pipefail
cat /etc/redhat-release
# Print versions of distro and installed packages
rpm -q bats container-selinux passt passt-selinux podman podman-tests policycoreutils selinux-policy
loginctl enable-linger "$ROOTLESS_USER"
# Run podman system tests
su - "$ROOTLESS_USER" -c "bats /usr/share/podman/test/system/410-selinux.bats"
su - "$ROOTLESS_USER" -c "bats /usr/share/podman/test/system/500-networking.bats"
su - "$ROOTLESS_USER" -c "bats /usr/share/podman/test/system/505-networking-pasta.bats"

16
tests/tests.yml Normal file
View file

@ -0,0 +1,16 @@
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-basic
required_packages:
- policycoreutils
- container-selinux
- podman
tests:
- is-module-installed:
run: semodule --list=full | grep container
- can-rebuild-policy:
run: semodule -B
- can-run-podman:
run: podman run --rm quay.io/libpod/testimage:20210610 cat -v /proc/self/attr/current