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