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