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