9f1da7c
Summary: A tool for generating SELinux security policies for containers
9f1da7c
Name: udica
c30c477
Version: 0.1.3
db3c086
Release: 4%{?dist}
9f1da7c
Source0: https://github.com/containers/udica/archive/v%{version}.tar.gz
9f1da7c
License: GPLv3+
9f1da7c
BuildArch: noarch
9f1da7c
Url: https://github.com/containers/udica
9f1da7c
%if 0%{?fedora} || 0%{?rhel} > 7
9f1da7c
BuildRequires: python3 python3-devel python3-setuptools
9f1da7c
Requires: python3 python3-libsemanage python3-libselinux
9f1da7c
%else
9f1da7c
BuildRequires: python2 python2-devel python2-setuptools
9f1da7c
Requires: python2 libsemanage-python libselinux-python
9f1da7c
%endif
9f1da7c
9f1da7c
%description
9f1da7c
Tool for generating SELinux security profiles for containers based on
9f1da7c
inspection of container JSON file.
9f1da7c
9f1da7c
%prep
9f1da7c
%setup -q
9f1da7c
9f1da7c
%build
9f1da7c
%if 0%{?fedora} || 0%{?rhel} > 7
9f1da7c
%{__python3} setup.py build
9f1da7c
%else
9f1da7c
%{__python2} setup.py build
9f1da7c
%endif
9f1da7c
9f1da7c
%install
9f1da7c
install --directory %%{buildroot}%{_datadir}/udica/templates
9f1da7c
9f1da7c
%if 0%{?fedora} || 0%{?rhel} > 7
9f1da7c
%{__python3} setup.py install --single-version-externally-managed --root=%{buildroot}
9f1da7c
%else
9f1da7c
%{__python2} setup.py install --single-version-externally-managed --root=%{buildroot}
9f1da7c
%endif
9f1da7c
9f1da7c
install --directory %{buildroot}%{_mandir}/man8
9f1da7c
install -m 0644 udica/man/man8/udica.8 %{buildroot}%{_mandir}/man8/udica.8
9f1da7c
9f1da7c
%files
9f1da7c
%{_mandir}/man8/udica.8*
9f1da7c
%{_bindir}/udica
9f1da7c
%dir %{_datadir}/udica
9f1da7c
%dir %{_datadir}/udica/templates
9f1da7c
%{_datadir}/udica/templates/*
9f1da7c
9f1da7c
%if 0%{?fedora} || 0%{?rhel} > 7
9f1da7c
%license LICENSE
9f1da7c
%{python3_sitelib}/udica/
9f1da7c
%{python3_sitelib}/udica-*.egg-info
9f1da7c
%else
9f1da7c
%{_datarootdir}/licenses/udica/LICENSE
9f1da7c
%{python2_sitelib}/udica/
9f1da7c
%{python2_sitelib}/udica-*.egg-info
9f1da7c
%endif
9f1da7c
9f1da7c
%changelog
db3c086
* Mon Feb 25 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.3-4
db3c086
- Update manpage with the latest known bug described in https://github.com/containers/udica/issues/8
db3c086
- Add check if runtimes are installed on the system
db3c086
d575e66
* Sun Feb 17 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.3-3
d575e66
- Improve capability parsing for docker containers
d575e66
- Update small changes in manpage, like issue with mandatory option '-c' for docker containers
d575e66
- Fix parsing Mountpoints in docker inspect JSON file
d575e66
979ba3e
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-2
979ba3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
979ba3e
c30c477
* Wed Jan 23 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.3-1
c30c477
- Fix capability allow rules when capabilities are specified in JSON file
c30c477
- Add additional SELinux allow rules to base container template to allow container to read proc_type types.
c30c477
47068c8
* Fri Jan 04 2019 Lukas Vrabec <lvrabec@redhat.com> - 0.1.2-1
47068c8
- Fix invalid syntax output when policy is using just one template
47068c8
Resolves: #6
47068c8
9f1da7c
* Tue Oct 23 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.1.1-2
9f1da7c
- Fix small issues in spec file like improve description and change files section.
9f1da7c
9f1da7c
* Mon Oct 22 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.1.1-1
9f1da7c
- Add proper shebang to all source files
9f1da7c
- Add License to all source files
9f1da7c
9f1da7c
* Sat Oct 13 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.1.0-1
9f1da7c
- Add support for docker containers
9f1da7c
9f1da7c
* Mon Oct 08 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.5-1
9f1da7c
- Update x_container template based on testing container related to Nvidia Cuda operations
9f1da7c
9f1da7c
* Mon Oct 08 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.4-2
9f1da7c
- Build udica on Red Hat Enterprise Linux 7 with python version 2
9f1da7c
9f1da7c
* Mon Oct 08 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.4-1
9f1da7c
- Add manpages
9f1da7c
- Add support for communicating with libvirt daemon
9f1da7c
- Add support for communicating with X server.
9f1da7c
- Add support for read/write to the controlling terminal
9f1da7c
9f1da7c
* Sun Oct 07 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.3-1
9f1da7c
- Remove required parameters -i or -j and added support for reading json file from stdin.
9f1da7c
- Remove "-n" or "--name" parameter. Name of the container will be required for this tool
9f1da7c
9f1da7c
* Tue Sep 25 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.2-1
9f1da7c
- Use subprocess.Popen instead of subprocess.run for inspecting to support also python2
9f1da7c
9f1da7c
* Thu Sep 20 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.1-3
9f1da7c
- Update readme and setup.py files after migration to github
9f1da7c
9f1da7c
* Sun Sep 16 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.1-2
9f1da7c
- Update LICENSE
9f1da7c
- Improve %%files section
9f1da7c
9f1da7c
* Sun Sep 16 2018 Lukas Vrabec <lvrabec@redhat.com> - 0.0.1-1
9f1da7c
- Initial build