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