2018-10-23 13:11:59 +00:00
|
|
|
Summary: A tool for generating SELinux security policies for containers
|
|
|
|
Name: udica
|
2020-11-25 17:12:12 +00:00
|
|
|
Version: 0.2.4
|
2021-01-27 22:33:53 +00:00
|
|
|
Release: 3%{?dist}
|
2018-10-23 13:11:59 +00:00
|
|
|
Source0: https://github.com/containers/udica/archive/v%{version}.tar.gz
|
|
|
|
License: GPLv3+
|
|
|
|
BuildArch: noarch
|
|
|
|
Url: https://github.com/containers/udica
|
2021-01-12 01:31:56 +00:00
|
|
|
BuildRequires: make
|
2018-10-23 13:11:59 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
2020-12-13 14:23:31 +00:00
|
|
|
BuildRequires: python3 python3-devel python3-setuptools python3-pyflakes black
|
2018-10-23 13:11:59 +00:00
|
|
|
Requires: python3 python3-libsemanage python3-libselinux
|
|
|
|
%else
|
|
|
|
BuildRequires: python2 python2-devel python2-setuptools
|
|
|
|
Requires: python2 libsemanage-python libselinux-python
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tool for generating SELinux security profiles for containers based on
|
|
|
|
inspection of container JSON file.
|
|
|
|
|
|
|
|
%prep
|
2019-05-07 09:36:03 +00:00
|
|
|
%autosetup -p 1
|
2018-10-23 13:11:59 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
%{__python3} setup.py build
|
|
|
|
%else
|
|
|
|
%{__python2} setup.py build
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
|
|
|
install --directory %%{buildroot}%{_datadir}/udica/templates
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
%{__python3} setup.py install --single-version-externally-managed --root=%{buildroot}
|
|
|
|
%else
|
|
|
|
%{__python2} setup.py install --single-version-externally-managed --root=%{buildroot}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
install --directory %{buildroot}%{_mandir}/man8
|
|
|
|
install -m 0644 udica/man/man8/udica.8 %{buildroot}%{_mandir}/man8/udica.8
|
|
|
|
|
2020-12-13 14:23:31 +00:00
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
2018-10-23 13:11:59 +00:00
|
|
|
%files
|
|
|
|
%{_mandir}/man8/udica.8*
|
|
|
|
%{_bindir}/udica
|
|
|
|
%dir %{_datadir}/udica
|
2019-06-12 12:10:23 +00:00
|
|
|
%dir %{_datadir}/udica/ansible
|
2018-10-23 13:11:59 +00:00
|
|
|
%dir %{_datadir}/udica/templates
|
2019-06-12 12:10:23 +00:00
|
|
|
%{_datadir}/udica/ansible/*
|
2018-10-23 13:11:59 +00:00
|
|
|
%{_datadir}/udica/templates/*
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_sitelib}/udica/
|
|
|
|
%{python3_sitelib}/udica-*.egg-info
|
|
|
|
%else
|
|
|
|
%{_datarootdir}/licenses/udica/LICENSE
|
|
|
|
%{python2_sitelib}/udica/
|
|
|
|
%{python2_sitelib}/udica-*.egg-info
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2021-01-27 22:33:53 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-13 14:23:31 +00:00
|
|
|
* Sun Dec 13 2020 Lukas Vrabec <lvrabec@redhat.com> - 0.2.4-2
|
|
|
|
- Add %check section to run basic tests during rpm build process
|
|
|
|
|
2020-11-25 17:12:12 +00:00
|
|
|
* Wed Nov 25 2020 Lukas Vrabec <lvrabec@redhat.com> - 0.2.4-1
|
|
|
|
- New rebase https://github.com/containers/udica/releases/tag/v0.2.4
|
|
|
|
|
2020-08-13 15:35:37 +00:00
|
|
|
* Thu Aug 13 2020 Lukas Vrabec <lvrabec@redhat.com> - 0.2.3-1
|
|
|
|
- New rebase https://github.com/containers/udica/releases/tag/v0.2.3
|
|
|
|
|
2020-08-03 17:05:31 +00:00
|
|
|
* Mon Aug 03 2020 Lukas Vrabec <lvrabec@redhat.com> - 0.2.2-1
|
|
|
|
- New rebase https://github.com/containers/udica/releases/tag/v0.2.2
|
|
|
|
|
2020-07-29 13:10:13 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-26 01:53:49 +00:00
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.1-3
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-01-31 02:26:26 +00:00
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-10-25 20:15:32 +00:00
|
|
|
* Fri Oct 25 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.2.1-1
|
|
|
|
- New rebase https://github.com/containers/udica/releases/tag/v0.2.1
|
|
|
|
|
2019-09-25 08:20:25 +00:00
|
|
|
* Wed Sep 25 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.2.0-1
|
|
|
|
- New rebase https://github.com/containers/udica/releases/tag/v0.2.0
|
|
|
|
|
2019-08-28 11:04:39 +00:00
|
|
|
* Wed Aug 28 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.9-1
|
|
|
|
- Update tests test_basic.podman.cil, test_basic.docker.cil. Round 2
|
|
|
|
- New rebase https://github.com/containers/udica/releases/tag/v0.1.9
|
|
|
|
|
2019-08-19 09:08:38 +00:00
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.8-3
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-27 02:19:45 +00:00
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-07-11 11:08:38 +00:00
|
|
|
* Thu Jul 11 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.8-1
|
|
|
|
- New rebase https://github.com/containers/udica/releases/tag/v0.1.8
|
|
|
|
|
2019-06-12 11:54:49 +00:00
|
|
|
* Wed Jun 12 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.7-1
|
|
|
|
- New rebase with upstream adding new param --ansible, to generate ansible playbook for deploying policies. https://github.com/containers/udica/releases/tag/v0.1.7
|
|
|
|
|
2019-05-16 17:36:00 +00:00
|
|
|
* Thu May 16 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.6-1
|
|
|
|
- New rebase with upstream adding new tests
|
|
|
|
|
2019-04-30 12:12:42 +00:00
|
|
|
* Tue Apr 30 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.5-2
|
|
|
|
- Add allow rules for container_runtime_t to base_container.cil, Podman version 1.2.0 requires new allow rules.
|
2019-04-19 18:43:16 +00:00
|
|
|
* Fri Apr 19 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.5-1
|
|
|
|
- Create mock selinux and semanage module
|
|
|
|
- Update testing section in README
|
|
|
|
- Add travis file for Travis CI
|
|
|
|
- Grammar fixes in the udica.8 manpage file
|
|
|
|
- Support port ranges (Resolves: #16)
|
|
|
|
- Test port ranges
|
|
|
|
|
2019-03-11 12:44:57 +00:00
|
|
|
* Mon Mar 11 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.4-1
|
|
|
|
- Fix minor problems reported by pylint #11
|
|
|
|
- Catch FileNotFoundError when inspecting containers #12
|
|
|
|
- Create basic tests #13
|
|
|
|
- Restore working directory #14
|
|
|
|
- udica cannot use the container ID once it is provided #10
|
|
|
|
|
2019-02-25 22:08:35 +00:00
|
|
|
* Mon Feb 25 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.3-4
|
|
|
|
- Update manpage with the latest known bug described in https://github.com/containers/udica/issues/8
|
|
|
|
- Add check if runtimes are installed on the system
|
|
|
|
|
2019-02-17 21:59:23 +00:00
|
|
|
* Sun Feb 17 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.3-3
|
|
|
|
- Improve capability parsing for docker containers
|
|
|
|
- Update small changes in manpage, like issue with mandatory option '-c' for docker containers
|
|
|
|
- Fix parsing Mountpoints in docker inspect JSON file
|
|
|
|
|
2019-02-03 10:40:11 +00:00
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2019-01-23 16:13:07 +00:00
|
|
|
* Wed Jan 23 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.3-1
|
|
|
|
- Fix capability allow rules when capabilities are specified in JSON file
|
|
|
|
- Add additional SELinux allow rules to base container template to allow container to read proc_type types.
|
|
|
|
|
2019-01-03 23:32:08 +00:00
|
|
|
* Fri Jan 04 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.2-1
|
|
|
|
- Fix invalid syntax output when policy is using just one template
|
|
|
|
Resolves: #6
|
|
|
|
|
2018-10-23 13:11:59 +00:00
|
|
|
* Tue Oct 23 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.1.1-2
|
|
|
|
- Fix small issues in spec file like improve description and change files section.
|
|
|
|
|
|
|
|
* Mon Oct 22 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.1.1-1
|
|
|
|
- Add proper shebang to all source files
|
|
|
|
- Add License to all source files
|
|
|
|
|
|
|
|
* Sat Oct 13 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.1.0-1
|
|
|
|
- Add support for docker containers
|
|
|
|
|
|
|
|
* Mon Oct 08 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.5-1
|
|
|
|
- Update x_container template based on testing container related to Nvidia Cuda operations
|
|
|
|
|
|
|
|
* Mon Oct 08 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.4-2
|
|
|
|
- Build udica on Red Hat Enterprise Linux 7 with python version 2
|
|
|
|
|
|
|
|
* Mon Oct 08 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.4-1
|
|
|
|
- Add manpages
|
|
|
|
- Add support for communicating with libvirt daemon
|
|
|
|
- Add support for communicating with X server.
|
|
|
|
- Add support for read/write to the controlling terminal
|
|
|
|
|
|
|
|
* Sun Oct 07 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.3-1
|
|
|
|
- Remove required parameters -i or -j and added support for reading json file from stdin.
|
|
|
|
- Remove "-n" or "--name" parameter. Name of the container will be required for this tool
|
|
|
|
|
|
|
|
* Tue Sep 25 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.2-1
|
|
|
|
- Use subprocess.Popen instead of subprocess.run for inspecting to support also python2
|
|
|
|
|
|
|
|
* Thu Sep 20 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.1-3
|
|
|
|
- Update readme and setup.py files after migration to github
|
|
|
|
|
|
|
|
* Sun Sep 16 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.1-2
|
|
|
|
- Update LICENSE
|
|
|
|
- Improve %%files section
|
|
|
|
|
|
|
|
* Sun Sep 16 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.1-1
|
|
|
|
- Initial build
|