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