cae17c
Summary: A tool for generating SELinux security policies for containers
cae17c
Name: udica
cae17c
Version: 0.2.4
cae17c
Release: 1%{?dist}
cae17c
Source0: https://github.com/containers/udica/archive/v%{version}.tar.gz
cae17c
License: GPLv3+
cae17c
BuildArch: noarch
cae17c
Url: https://github.com/containers/udica
cae17c
%if 0%{?fedora} || 0%{?rhel} > 7
cae17c
BuildRequires: python3 python3-devel python3-setuptools
cae17c
Requires: python3 python3-libsemanage python3-libselinux
cae17c
%else
cae17c
BuildRequires: python2 python2-devel python2-setuptools
cae17c
Requires: python2 libsemanage-python libselinux-python
cae17c
%endif
cae17c
cae17c
%description
cae17c
Tool for generating SELinux security profiles for containers based on
cae17c
inspection of container JSON file.
cae17c
cae17c
%prep
cae17c
%setup -q
cae17c
cae17c
%build
cae17c
%if 0%{?fedora} || 0%{?rhel} > 7
cae17c
%{__python3} setup.py build
cae17c
%else
cae17c
%{__python2} setup.py build
cae17c
%endif
cae17c
cae17c
%install
cae17c
install --directory %%{buildroot}%{_datadir}/udica/templates
cae17c
cae17c
%if 0%{?fedora} || 0%{?rhel} > 7
cae17c
%{__python3} setup.py install --single-version-externally-managed --root=%{buildroot}
cae17c
%else
cae17c
%{__python2} setup.py install --single-version-externally-managed --root=%{buildroot}
cae17c
%endif
cae17c
cae17c
install --directory %{buildroot}%{_mandir}/man8
cae17c
install -m 0644 udica/man/man8/udica.8 %{buildroot}%{_mandir}/man8/udica.8
cae17c
cae17c
%files
cae17c
%{_mandir}/man8/udica.8*
cae17c
%{_bindir}/udica
cae17c
%dir %{_datadir}/udica
cae17c
%dir %{_datadir}/udica/ansible
cae17c
%dir %{_datadir}/udica/templates
cae17c
%{_datadir}/udica/ansible/*
cae17c
%{_datadir}/udica/templates/*
cae17c
cae17c
%if 0%{?fedora} || 0%{?rhel} > 7
cae17c
%license LICENSE
cae17c
%{python3_sitelib}/udica/
cae17c
%{python3_sitelib}/udica-*.egg-info
cae17c
%else
cae17c
%{_datarootdir}/licenses/udica/LICENSE
cae17c
%{python2_sitelib}/udica/
cae17c
%{python2_sitelib}/udica-*.egg-info
cae17c
%endif
cae17c
cae17c
%changelog
cae17c
* Thu Nov 26 2020 Jindrich Novy <jnovy@redhat.com> - 0.2.4-1
cae17c
- update to https://github.com/containers/udica/releases/tag/v0.2.4
cae17c
- Related: #1883490
cae17c
cae17c
* Wed Oct 21 2020 Jindrich Novy <jnovy@redhat.com> - 0.2.3-1
cae17c
- synchronize with stream-container-tools-rhel8
cae17c
- Related: #1883490
cae17c
cae17c
* Mon Aug 10 2020 Jindrich Novy <jnovy@redhat.com> - 0.2.2-1
cae17c
- https://github.com/containers/udica/releases/tag/v0.2.2
cae17c
- Related: #1821193
cae17c
cae17c
* Tue Nov 26 2019 Jindrich Novy <jnovy@redhat.com> - 0.2.1-2
cae17c
- initial import to container-tools 8.2.0
cae17c
- Related: RHELPLAN-25139
cae17c
cae17c
* Fri Oct 25 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.2.1-1
cae17c
- New rebase https://github.com/containers/udica/releases/tag/v0.2.0
cae17c
Resolves: rhbz#1757693
cae17c
cae17c
* Wed Oct 02 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.2.0-1
cae17c
- New rebase https://github.com/containers/udica/releases/tag/v0.2.0
cae17c
Resolves: rhbz#1757693
cae17c
cae17c
* Thu Jul 11 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.8-1
cae17c
- Udica supports podman version 1.4.0+
cae17c
Resolves: rhbz#1729115
cae17c
cae17c
* Fri May 17 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.6-1
cae17c
- Update testsuite from upstream release
cae17c
Resolves: rhbz#1673643
cae17c
cae17c
* Wed May 15 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.5-2
cae17c
- Bump release because of gating tests
cae17c
cae17c
* Fri Apr 19 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.5-1
cae17c
- Create mock selinux and semanage module
cae17c
- Update testing section in README
cae17c
- Add travis file for Travis CI
cae17c
- Grammar fixes in the udica.8 manpage file
cae17c
- Support port ranges (Resolves: #16)
cae17c
- Test port ranges
cae17c
cae17c
* Mon Mar 11 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.4-1
cae17c
- Fix minor problems reported by pylint #11
cae17c
- Catch FileNotFoundError when inspecting containers #12
cae17c
- Create basic tests #13
cae17c
- Restore working directory #14
cae17c
- udica cannot use the container ID once it is provided #10
cae17c
cae17c
* Mon Feb 25 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.3-4
cae17c
- Update manpage with the latest known bug described in https://github.com/containers/udica/issues/8
cae17c
- Add check if runtimes are installed on the system
cae17c
cae17c
* Sun Feb 17 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.3-3
cae17c
- Improve capability parsing for docker containers
cae17c
- Update small changes in manpage, like issue with mandatory option '-c' for docker containers
cae17c
- Fix parsing Mountpoints in docker inspect JSON file
cae17c
cae17c
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-2
cae17c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cae17c
cae17c
* Wed Jan 23 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.3-1
cae17c
- Fix capability allow rules when capabilities are specified in JSON file
cae17c
- Add additional SELinux allow rules to base container template to allow container to read proc_type types.
cae17c
cae17c
* Fri Jan 04 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.2-1
cae17c
- Fix invalid syntax output when policy is using just one template
cae17c
Resolves: #6
cae17c
cae17c
* Tue Oct 23 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.1.1-2
cae17c
- Fix small issues in spec file like improve description and change files section.
cae17c
cae17c
* Mon Oct 22 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.1.1-1
cae17c
- Add proper shebang to all source files
cae17c
- Add License to all source files
cae17c
cae17c
* Sat Oct 13 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.1.0-1
cae17c
- Add support for docker containers
cae17c
cae17c
* Mon Oct 08 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.5-1
cae17c
- Update x_container template based on testing container related to Nvidia Cuda operations
cae17c
cae17c
* Mon Oct 08 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.4-2
cae17c
- Build udica on Red Hat Enterprise Linux 7 with python version 2
cae17c
cae17c
* Mon Oct 08 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.4-1
cae17c
- Add manpages
cae17c
- Add support for communicating with libvirt daemon
cae17c
- Add support for communicating with X server.
cae17c
- Add support for read/write to the controlling terminal
cae17c
cae17c
* Sun Oct 07 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.3-1
cae17c
- Remove required parameters -i or -j and added support for reading json file from stdin.
cae17c
- Remove "-n" or "--name" parameter. Name of the container will be required for this tool
cae17c
cae17c
* Tue Sep 25 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.2-1
cae17c
- Use subprocess.Popen instead of subprocess.run for inspecting to support also python2
cae17c
cae17c
* Thu Sep 20 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.1-3
cae17c
- Update readme and setup.py files after migration to github
cae17c
cae17c
* Sun Sep 16 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.1-2
cae17c
- Update LICENSE
cae17c
- Improve %%files section
cae17c
cae17c
* Sun Sep 16 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.1-1
cae17c
- Initial build