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