2021-03-08 17:01:35 +00:00
|
|
|
%global sepol_ver 3.2-1
|
|
|
|
%global selinux_ver 3.2-1
|
2017-02-15 12:54:11 +00:00
|
|
|
|
|
|
|
Name: setools
|
2020-11-03 15:07:11 +00:00
|
|
|
Version: 4.4.0
|
2021-11-19 11:56:24 +00:00
|
|
|
Release: 4%{?dist}
|
2017-02-15 12:54:11 +00:00
|
|
|
Summary: Policy analysis tools for SELinux
|
|
|
|
|
|
|
|
License: GPLv2
|
2018-08-22 16:08:05 +00:00
|
|
|
URL: https://github.com/SELinuxProject/setools/wiki
|
2021-03-08 17:01:35 +00:00
|
|
|
Source0: https://github.com/SELinuxProject/setools/archive/%{version}.tar.gz
|
2017-02-15 12:54:11 +00:00
|
|
|
Source1: setools.pam
|
|
|
|
Source2: apol.desktop
|
2021-11-19 11:55:09 +00:00
|
|
|
Patch0001: 0001-Make-seinfo-output-predictable.patch
|
2018-08-09 14:34:27 +00:00
|
|
|
Patch1002: 1002-Do-not-export-use-setools.InfoFlowAnalysis-and-setoo.patch
|
2020-04-02 14:13:04 +00:00
|
|
|
Patch1003: 1003-Require-networkx-on-package-level.patch
|
2017-02-15 12:54:11 +00:00
|
|
|
Obsoletes: setools < 4.0.0, setools-devel < 4.0.0
|
|
|
|
BuildRequires: flex, bison
|
2020-11-03 15:57:08 +00:00
|
|
|
BuildRequires: glibc-devel, gcc, git-core
|
2017-02-23 12:18:02 +00:00
|
|
|
BuildRequires: libsepol-devel >= %{sepol_ver}, libsepol-static >= %{sepol_ver}
|
2017-02-15 12:54:11 +00:00
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
BuildRequires: swig
|
2018-08-09 14:34:27 +00:00
|
|
|
BuildRequires: python3-Cython
|
2017-05-30 09:49:45 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2018-08-09 14:34:27 +00:00
|
|
|
BuildRequires: libselinux-devel
|
2017-02-15 12:54:11 +00:00
|
|
|
|
2020-03-23 19:51:22 +00:00
|
|
|
Requires: %{name}-console = %{version}-%{release}
|
|
|
|
Requires: %{name}-console-analyses = %{version}-%{release}
|
|
|
|
Requires: %{name}-gui = %{version}-%{release}
|
2007-07-20 15:16:24 +00:00
|
|
|
|
2004-09-09 12:15:29 +00:00
|
|
|
%description
|
2007-04-30 15:31:11 +00:00
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
2017-02-15 12:54:11 +00:00
|
|
|
Python modules designed to facilitate SELinux policy analysis.
|
2007-04-30 15:31:11 +00:00
|
|
|
|
2017-02-23 09:51:31 +00:00
|
|
|
%package console
|
|
|
|
Summary: Policy analysis command-line tools for SELinux
|
|
|
|
License: GPLv2
|
2017-08-12 13:13:07 +00:00
|
|
|
Requires: python3-setools = %{version}-%{release}
|
2017-02-23 09:51:31 +00:00
|
|
|
Requires: libselinux >= %{selinux_ver}
|
2007-04-30 15:31:11 +00:00
|
|
|
|
|
|
|
%description console
|
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
libraries designed to facilitate SELinux policy analysis.
|
|
|
|
|
|
|
|
This package includes the following console tools:
|
|
|
|
|
2017-02-15 12:54:11 +00:00
|
|
|
sediff Compare two policies to find differences.
|
|
|
|
seinfo List policy components.
|
|
|
|
sesearch Search rules (allow, type_transition, etc.)
|
2004-09-09 12:15:29 +00:00
|
|
|
|
|
|
|
|
2017-02-23 10:03:03 +00:00
|
|
|
%package console-analyses
|
|
|
|
Summary: Policy analysis command-line tools for SELinux
|
|
|
|
License: GPLv2
|
2017-08-12 13:13:07 +00:00
|
|
|
Requires: python3-setools = %{version}-%{release}
|
2017-02-23 10:03:03 +00:00
|
|
|
Requires: libselinux >= %{selinux_ver}
|
|
|
|
Requires: python3-networkx
|
|
|
|
|
|
|
|
%description console-analyses
|
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
libraries designed to facilitate SELinux policy analysis.
|
|
|
|
|
|
|
|
This package includes the following console tools:
|
|
|
|
|
|
|
|
sedta Perform domain transition analyses.
|
|
|
|
seinfoflow Perform information flow analyses.
|
|
|
|
|
|
|
|
|
2017-08-12 13:13:07 +00:00
|
|
|
%package -n python3-setools
|
2017-02-15 12:54:11 +00:00
|
|
|
Summary: Policy analysis tools for SELinux
|
2018-07-23 19:28:26 +00:00
|
|
|
Obsoletes: setools-libs < 4.0.0
|
2017-05-22 06:58:21 +00:00
|
|
|
Recommends: libselinux-python3
|
2018-08-09 14:34:27 +00:00
|
|
|
%{?python_provide:%python_provide python3-setools}
|
2018-08-29 10:56:24 +00:00
|
|
|
Requires: python3-setuptools
|
2011-09-29 13:30:56 +00:00
|
|
|
|
2017-08-12 13:13:07 +00:00
|
|
|
%description -n python3-setools
|
2017-02-15 12:54:11 +00:00
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
Python 3 modules designed to facilitate SELinux policy analysis.
|
2011-09-20 21:12:38 +00:00
|
|
|
|
2011-04-21 16:07:11 +00:00
|
|
|
|
2017-02-15 12:54:11 +00:00
|
|
|
%package gui
|
|
|
|
Summary: Policy analysis graphical tools for SELinux
|
2018-08-23 09:16:34 +00:00
|
|
|
Requires: python3-setools = %{version}-%{release}
|
2017-02-15 12:54:11 +00:00
|
|
|
Requires: python3-qt5
|
2017-02-23 10:03:03 +00:00
|
|
|
Requires: python3-networkx
|
2011-04-15 18:20:18 +00:00
|
|
|
|
2017-02-15 12:54:11 +00:00
|
|
|
%description gui
|
|
|
|
SETools is a collection of graphical tools, command-line tools, and
|
|
|
|
Python modules designed to facilitate SELinux policy analysis.
|
2011-03-30 18:41:50 +00:00
|
|
|
|
2011-02-28 03:38:04 +00:00
|
|
|
|
2017-02-15 12:54:11 +00:00
|
|
|
%prep
|
2021-03-08 17:01:35 +00:00
|
|
|
%autosetup -p 1 -S git -n setools-%{version}
|
2010-11-05 11:30:34 +00:00
|
|
|
|
2010-10-14 18:25:23 +00:00
|
|
|
|
2017-02-15 12:54:11 +00:00
|
|
|
%build
|
2019-02-13 00:09:32 +00:00
|
|
|
%py3_build
|
2010-10-14 18:25:23 +00:00
|
|
|
|
|
|
|
|
2017-02-15 12:54:11 +00:00
|
|
|
%install
|
2019-02-13 00:09:32 +00:00
|
|
|
%py3_install
|
2017-02-15 12:54:11 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
%if %{?_with_check:1}%{!?_with_check:0}
|
2017-02-23 09:51:31 +00:00
|
|
|
%{__python3} setup.py test
|
2017-02-15 12:54:11 +00:00
|
|
|
%endif
|
2010-07-26 21:47:56 +00:00
|
|
|
|
2010-07-22 06:29:33 +00:00
|
|
|
|
2017-02-15 12:54:11 +00:00
|
|
|
%files
|
2010-05-12 14:48:40 +00:00
|
|
|
|
2017-02-15 12:54:11 +00:00
|
|
|
%files console
|
2020-11-03 15:07:11 +00:00
|
|
|
%{_bindir}/sechecker
|
2017-02-15 12:54:11 +00:00
|
|
|
%{_bindir}/sediff
|
|
|
|
%{_bindir}/seinfo
|
|
|
|
%{_bindir}/sesearch
|
2020-11-03 15:07:11 +00:00
|
|
|
%{_mandir}/man1/sechecker*
|
2017-02-23 10:03:03 +00:00
|
|
|
%{_mandir}/man1/sediff*
|
|
|
|
%{_mandir}/man1/seinfo*
|
|
|
|
%{_mandir}/man1/sesearch*
|
2020-04-02 14:13:04 +00:00
|
|
|
%{_mandir}/ru/man1/sediff*
|
|
|
|
%{_mandir}/ru/man1/seinfo*
|
|
|
|
%{_mandir}/ru/man1/sesearch*
|
2017-02-23 10:03:03 +00:00
|
|
|
|
|
|
|
%files console-analyses
|
|
|
|
%{_bindir}/sedta
|
|
|
|
%{_bindir}/seinfoflow
|
|
|
|
%{_mandir}/man1/sedta*
|
|
|
|
%{_mandir}/man1/seinfoflow*
|
2020-04-02 14:13:04 +00:00
|
|
|
%{_mandir}/ru/man1/sedta*
|
|
|
|
%{_mandir}/ru/man1/seinfoflow*
|
2010-05-12 14:29:18 +00:00
|
|
|
|
2017-08-12 13:13:07 +00:00
|
|
|
%files -n python3-setools
|
2017-02-15 12:54:11 +00:00
|
|
|
%license COPYING COPYING.GPL COPYING.LGPL
|
2018-06-14 09:04:36 +00:00
|
|
|
%{python3_sitearch}/setools
|
|
|
|
%{python3_sitearch}/setools-*
|
2009-07-28 13:43:02 +00:00
|
|
|
|
2017-02-15 12:54:11 +00:00
|
|
|
%files gui
|
|
|
|
%{_bindir}/apol
|
2018-06-14 09:04:36 +00:00
|
|
|
%{python3_sitearch}/setoolsgui
|
2017-02-23 10:03:03 +00:00
|
|
|
%{_mandir}/man1/apol*
|
2020-04-02 14:13:04 +00:00
|
|
|
%{_mandir}/ru/man1/apol*
|
2009-07-27 04:12:01 +00:00
|
|
|
|
2017-02-15 12:54:11 +00:00
|
|
|
%changelog
|
2021-11-19 11:56:24 +00:00
|
|
|
* Fri Nov 19 2021 Petr Lautrbach <plautrba@redhat.com> - 4.4.0-4
|
|
|
|
- Make seinfo output predictable
|
|
|
|
https://github.com/SELinuxProject/setools/issues/65
|
|
|
|
|
2021-07-23 17:24:51 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-04 19:14:41 +00:00
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.4.0-2
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
2021-03-08 17:01:35 +00:00
|
|
|
* Mon Mar 8 2021 Petr Lautrbach <plautrba@redhat.com> - 4.4.0-1
|
|
|
|
- SETools 4.4.0 release
|
|
|
|
|
2021-01-27 20:15:12 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-0.3.20210121git16c0696
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-21 10:38:03 +00:00
|
|
|
* Thu Jan 21 2021 Petr Lautrbach <plautrba@redhat.com> - 4.4.0-0.2.20210121git16c0696
|
|
|
|
- Rebuild with SELinux userspace 3.2-rc1
|
|
|
|
- Update to 16c0696
|
|
|
|
|
2020-12-10 16:12:14 +00:00
|
|
|
* Thu Dec 10 2020 Petr Lautrbach <plautrba@redhat.com> - 4.4.0-0.2.20201102git05e90ee
|
|
|
|
- Fix imports in /usr/bin/sedta
|
|
|
|
|
2020-11-03 15:07:11 +00:00
|
|
|
* Tue Nov 3 2020 Petr Lautrbach <plautrba@redhat.com> - 4.4.0-0.1.20201102git05e90ee
|
|
|
|
- Update to 05e90ee
|
|
|
|
- Add /usr/bin/sechecker
|
|
|
|
- Adapt to new libsepol filename transition structures
|
|
|
|
- Rebuild with libsepol.so.2
|
|
|
|
|
2020-08-01 09:02:07 +00:00
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-5
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-29 10:35:00 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-16 10:22:20 +00:00
|
|
|
* Thu Jul 16 2020 Petr Lautrbach <plautrba@redhat.com> - 4.3.0-3
|
|
|
|
- rebuild with SELinux userspace 3.1 release
|
|
|
|
|
2020-05-26 01:50:16 +00:00
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.3.0-2
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-04-02 14:13:04 +00:00
|
|
|
* Thu Apr 2 2020 Petr Lautrbach <plautrba@redhat.com> - 4.3.0-1
|
|
|
|
- SETools 4.3.0 release
|
|
|
|
- Revised sediff method for TE rules. This drastically reduced memory and run time.
|
|
|
|
- Added infiniband context support to seinfo, sediff, and apol.
|
|
|
|
- Added apol configuration for location of Qt assistant.
|
|
|
|
- Fixed sediff issue where properties header would display when not requested.
|
|
|
|
- Fixed sediff issue with type_transition file name comparison.
|
|
|
|
- Fixed permission map socket sendto information flow direction.
|
|
|
|
- Added methods to TypeAttribute class to make it a complete Python collection.
|
|
|
|
- Genfscon now will look up classes rather than using fixed values which
|
|
|
|
were dropped from libsepol.
|
|
|
|
|
2020-03-23 19:51:22 +00:00
|
|
|
* Mon Mar 23 2020 Petr Lautrbach <plautrba@redhat.com> - 4.2.2-5
|
|
|
|
- setools requires -console, -console-analyses and -gui packages (#1794314)
|
|
|
|
|
2020-01-30 23:16:58 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-10-03 12:38:40 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.2.2-3
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-19 09:05:46 +00:00
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.2.2-2
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2018-08-09 14:34:27 +00:00
|
|
|
* Mon Jul 08 2019 Vit Mojzis <vmojzis@redhat.com> - 4.2.2-1}
|
|
|
|
- SETools 4.2.2 release
|
|
|
|
|
|
|
|
* Mon May 13 2019 Vit Mojzis <vmojzis@redhat.com> - 4.2.1-3
|
|
|
|
- Use %set_build_flags instead of %optflags
|
|
|
|
|
|
|
|
* Mon May 06 2019 Vit Mojzis <vmojzis@redhat.com> - 4.2.1-2
|
|
|
|
- SELinuxPolicy: Create a map of aliases on policy load (#1672631)
|
|
|
|
|
|
|
|
* Tue Mar 26 2019 Petr Lautrbach <plautrba@redhat.com> - 4.2.1-1
|
|
|
|
- SETools 4.2.1 release (#1581761, #1595582)
|
|
|
|
|
|
|
|
* Wed Nov 14 2018 Vit Mojzis <vmojzis@redhat.com> - 4.2.0-1
|
|
|
|
- Update source to SETools 4.2.0 release
|
|
|
|
|
|
|
|
* Mon Oct 01 2018 Vit Mojzis <vmojzis@redhat.com> - 4.2.0-0.3.rc
|
|
|
|
- Update upstream source to 4.2.0-rc
|
2019-07-26 23:07:24 +00:00
|
|
|
|
2018-08-09 14:34:27 +00:00
|
|
|
* Wed Sep 19 2018 Vit Mojzis <vmojzis@redhat.com> - 4.2.0-0.2.beta
|
|
|
|
- Require userspace release 2.8
|
|
|
|
- setools-gui requires python3-setools
|
|
|
|
- Add Requires for python[23]-setuptools - no longer required (just recommended) by python[23] (#1623371)
|
|
|
|
- Drop python2 subpackage (4.2.0 no longer supports python2)
|
2019-02-02 15:14:20 +00:00
|
|
|
|
2018-08-29 10:56:24 +00:00
|
|
|
* Wed Aug 29 2018 Vit Mojzis <vmojzis@redhat.com> - 4.1.1-13
|
|
|
|
- Add Requires for python[23]-setuptools - no longer required (just recommended)
|
|
|
|
by python[23] (#1623371)
|
|
|
|
|
2018-08-23 10:20:26 +00:00
|
|
|
* Wed Aug 22 2018 Petr Lautrbach <plautrba@redhat.com> - 4.1.1-12.1
|
2018-08-22 16:08:05 +00:00
|
|
|
- Fix SCTP patch - https://github.com/SELinuxProject/setools/issues/9
|
|
|
|
|
2018-07-14 06:00:08 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-19 09:27:24 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.1.1-10
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-06-14 11:27:08 +00:00
|
|
|
* Thu Jun 14 2018 Petr Lautrbach <plautrba@redhat.com> - 4.1.1-9
|
2018-06-14 11:06:05 +00:00
|
|
|
- Move gui python files to -gui subpackage
|
|
|
|
|
2018-04-26 09:35:58 +00:00
|
|
|
* Thu Apr 26 2018 Vit Mojzis <vmojzis@redhat.com> - 4.1.1-8
|
|
|
|
- Add support for SCTP protocol (#1568333)
|
|
|
|
|
2018-04-19 00:06:10 +00:00
|
|
|
* Thu Apr 19 2018 Iryna Shcherbina <shcherbina.iryna@gmail.com> - 4.1.1-7
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2018-02-09 16:32:55 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
setools-python2 requires python2-enum34
Fixes:
>>> import setools
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/setools/__init__.py", line 31, in <module>
from . import policyrep
File "/usr/lib64/python2.7/site-packages/setools/policyrep/__init__.py", line 26, in <module>
from .bounds import BoundsRuletype
File "/usr/lib64/python2.7/site-packages/setools/policyrep/bounds.py", line 24, in <module>
from .util import PolicyEnum
File "/usr/lib64/python2.7/site-packages/setools/policyrep/util.py", line 21, in <module>
from enum import Enum
ImportError: No module named enum
2017-09-04 16:13:55 +00:00
|
|
|
* Mon Sep 04 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.1-5
|
|
|
|
- setools-python2 requires python2-enum34
|
|
|
|
|
2017-08-20 14:42:50 +00:00
|
|
|
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.1.1-4
|
|
|
|
- Add Provides for the old name without %%_isa
|
|
|
|
|
2017-08-12 13:06:58 +00:00
|
|
|
* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.1.1-3
|
|
|
|
- Python 2 binary package renamed to python2-setools
|
|
|
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
2017-08-12 13:13:07 +00:00
|
|
|
- Python 3 binary package renamed to python3-setools
|
2017-08-12 13:06:58 +00:00
|
|
|
|
2017-08-10 06:59:30 +00:00
|
|
|
* Thu Aug 10 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.1-2
|
|
|
|
- bswap_* macros are defined in byteswap.h
|
|
|
|
|
2017-08-07 16:11:14 +00:00
|
|
|
* Mon Aug 07 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.1-1
|
|
|
|
- New upstream release
|
|
|
|
|
2017-08-03 08:21:21 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 18:28:12 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-08-07 16:11:14 +00:00
|
|
|
* Mon May 22 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.0-3
|
2017-05-22 06:58:21 +00:00
|
|
|
- setools-python{,3} packages should have a weak dependency on libselinux-python{,3}
|
|
|
|
(#1447747)
|
|
|
|
|
2017-02-23 11:43:31 +00:00
|
|
|
* Thu Feb 23 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.0-2
|
|
|
|
- Move python networkx dependency to -gui and -console-analyses
|
|
|
|
- Ship sedta and seinfoflow in setools-console-analyses
|
|
|
|
|
2017-02-15 12:54:11 +00:00
|
|
|
* Wed Feb 15 2017 Petr Lautrbach <plautrba@redhat.com> - 4.1.0-1
|
2009-07-22 18:59:21 +00:00
|
|
|
- New upstream release.
|