Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Vit Mojzis
136ff6eaa6 udica-0.2.6-1
- New release https://github.com/containers/udica/releases/tag/v0.2.6
- Move policy templates to container-selinux repo
2021-10-25 16:08:39 +02:00
Vit Mojzis
b702a462b3 tests: Require container-selinux
Policy templates where moved to container-selinux package and udica
doesn't work properly without them.

Sanity test temporarily needs git for downloading policy templates.
Those will soon be available via container-selinux.

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2021-10-25 15:57:38 +02:00
Vit Mojzis
8d4d9f3eaa udica-0.2.5-1
- New rebase https://github.com/containers/udica/releases/tag/v0.2.5
- Replace capability dictionary with str.lower()
- Enable udica to generate policies with fifo class
- Sort container inspect data before processing
- Update templates to work properly with new cil parser
2021-09-15 09:35:43 +02:00
Vit Mojzis
b0ad976319 * Tue Mar 16 2021 Vit Mojzis <vmojzis@redhat.com> - 0.2.4-4
- Remove  %check section
2021-03-16 16:06:06 +01:00
Vit Mojzis
5031b14264 Revert "Add %check section to run basic tests during rpm build process"
The check is not necessary since it's part of the CI and brings needless
dependencies.

This reverts commits fa6f003ec4 and
4dc4b32e96.
2021-03-11 16:23:25 +01:00
6 changed files with 33 additions and 12 deletions

2
.gitignore vendored
View file

@ -12,3 +12,5 @@
/v0.2.2.tar.gz
/v0.2.3.tar.gz
/v0.2.4.tar.gz
/v0.2.5.tar.gz
/v0.2.6.tar.gz

View file

@ -1 +1 @@
SHA512 (v0.2.4.tar.gz) = 17d4d33939e15a113badf7df17b55c51cdf2659b49f6ae90c8e2f0b741ffabed019ee2b9a1dd8123f5ca96f3f1111fcad74d8480fdf00bc1b10b6e2d5f2948a4
SHA512 (v0.2.6.tar.gz) = 29295c9d95ecb15aed7e226d92a0b838046cf607e98956c66a83ad0f4ddf58b255586c24d407216ae9ddf5b11f502ae2b3a6822208d8dc8141124e68dac19265

View file

@ -33,6 +33,7 @@ PACKAGE="udica"
rlJournalStart
rlPhaseStartSetup
rlAssertRpm "udica"
rlAssertRpm "container-selinux"
rlAssertRpm "policycoreutils"
rlAssertRpm "podman"
rlAssertRpm "docker"

View file

@ -33,6 +33,7 @@ PACKAGE="udica"
rlJournalStart
rlPhaseStartSetup
rlAssertRpm "udica"
rlAssertRpm "container-selinux"
rlAssertRpm "policycoreutils"
rlAssertRpm "podman"
OUTPUT_FILE=$(mktemp)

View file

@ -8,6 +8,8 @@
- role: standard-test-basic
required_packages:
- python3
- container-selinux
- git
tests:
- smoke:
dir: ./source
@ -16,6 +18,11 @@
dir: ./source
run: python3 tests/test_integration.py
- hosts: localhost
tags:
- classic
- container
roles:
- role: standard-test-beakerlib
tags:
- classic
@ -23,3 +30,5 @@
- sanity
required_packages:
- podman
- udica
- container-selinux

View file

@ -1,19 +1,20 @@
Summary: A tool for generating SELinux security policies for containers
Name: udica
Version: 0.2.4
Release: 3%{?dist}
Version: 0.2.6
Release: 1%{?dist}
Source0: https://github.com/containers/udica/archive/v%{version}.tar.gz
License: GPLv3+
BuildArch: noarch
Url: https://github.com/containers/udica
BuildRequires: make
%if 0%{?fedora} || 0%{?rhel} > 7
BuildRequires: python3 python3-devel python3-setuptools python3-pyflakes black
BuildRequires: python3 python3-devel python3-setuptools
Requires: python3 python3-libsemanage python3-libselinux
%else
BuildRequires: python2 python2-devel python2-setuptools
Requires: python2 libsemanage-python libselinux-python
%endif
# container-selinux provides policy templates
Requires: container-selinux >= 2.170.0-2
%description
Tool for generating SELinux security profiles for containers based on
@ -30,8 +31,6 @@ inspection of container JSON file.
%endif
%install
install --directory %%{buildroot}%{_datadir}/udica/templates
%if 0%{?fedora} || 0%{?rhel} > 7
%{__python3} setup.py install --single-version-externally-managed --root=%{buildroot}
%else
@ -41,17 +40,12 @@ install --directory %%{buildroot}%{_datadir}/udica/templates
install --directory %{buildroot}%{_mandir}/man8
install -m 0644 udica/man/man8/udica.8 %{buildroot}%{_mandir}/man8/udica.8
%check
make test
%files
%{_mandir}/man8/udica.8*
%{_bindir}/udica
%dir %{_datadir}/udica
%dir %{_datadir}/udica/ansible
%dir %{_datadir}/udica/templates
%{_datadir}/udica/ansible/*
%{_datadir}/udica/templates/*
%if 0%{?fedora} || 0%{?rhel} > 7
%license LICENSE
@ -64,6 +58,20 @@ make test
%endif
%changelog
* Mon Sep 13 2021 Vit Mojzis <vmojzis@redhat.com> - 0.2.6-1
- New release https://github.com/containers/udica/releases/tag/v0.2.6
- Move policy templates to container-selinux repo
* Wed Aug 25 2021 Vit Mojzis <vmojzis@redhat.com> - 0.2.5-1
- New rebase https://github.com/containers/udica/releases/tag/v0.2.5
- Replace capability dictionary with str.lower()
- Enable udica to generate policies with fifo class
- Sort container inspect data before processing
- Update templates to work properly with new cil parser
* Tue Mar 16 2021 Vit Mojzis <vmojzis@redhat.com> - 0.2.4-4
- Remove %check section
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild