Compare commits

...
Sign in to create a new pull request.

21 commits

Author SHA1 Message Date
Veronika Syncakova
630d9a6666 setools-4.6.0-4
- Fix seinfo argument parsing when policy path follows query options
2025-12-09 15:31:41 +01:00
Miro Hrončok
c0cc824e8f Drop redundant runtime requirement on python3-setuptools (redux)
The patch was removed in
https://src.fedoraproject.org/rpms/setools/c/e6c218363b79bd5be5dd417953e53b4e4d9733ae?branch=rawhide

But we want to keep it.

My upstream removal was reverted and later reapplied again,
so update the the patch link to the latter one.
2025-10-02 11:56:41 +02:00
Python Maint
ace7694196 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 14:55:49 +02:00
Petr Lautrbach
e6c218363b SETools 4.6.0 2025-09-09 10:23:26 +02:00
Python Maint
1bd344a3ee Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:17:29 +02:00
Miro Hrončok
17706eb780 Drop redundant runtime requirement on python3-setuptools (correction)
This is a fixup for f5e19e21ec
2025-08-05 00:11:13 +02:00
Fedora Release Engineering
e93cfa7b72 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 18:10:39 +00:00
Petr Lautrbach
11ee438aa0 Rebuilt with SELinux userspace 3.9-rc2 release 2025-07-05 20:14:37 +02:00
Python Maint
93d27ba219 Rebuilt for Python 3.14 2025-06-02 20:49:32 +02:00
Miro Hrončok
f5e19e21ec Drop redundant runtime requirement on python3-setuptools, dropped in setools 4.5.1 2025-04-01 14:48:12 +02:00
Fedora Release Engineering
658794f3e3 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 10:27:59 +00:00
Petr Lautrbach
cb92b5067a pyprojectize spec file
The old %py3_build and %py3_install macros (201x-era) as documented in [1] use
a deprecated feature of setuptools.

It is highly recommended to use the current %pyproject macros instead as
documented in [2] and [3] sooner than it becomes necessary.

[1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_201x/
[2]: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/
[3]: https://src.fedoraproject.org/rpms/pyproject-rpm-macros/blob/rawhide/f/README.md

https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RFHSXAU2D4PEN2KHZCBUGP6MEGTUOUD2/
2024-10-11 09:05:40 +02:00
Petr Lautrbach
183b6ffe53 Replace setup.py test with %pytest
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/YOC5527SRKNY2XG6CMS3KNGJ54O7SMXI/
2024-08-15 11:46:13 +02:00
Fedora Release Engineering
94756e17ba Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 05:18:18 +00:00
Python Maint
d301e66a01 Rebuilt for Python 3.13 2024-06-07 09:51:16 +02:00
Petr Lautrbach
5f7bd5af0a Fix License tag
Fixes:
  SPDX license expressions in use, but an invalid boolean was
  found: and; when using SPDX expression the booleans must be in all
  caps.
2024-05-03 15:35:06 +02:00
Petr Lautrbach
5bd6294fca SETools 4.5.1
- Correct annotations of NetworkX types to make it optional again.
- Fix packaging issue for apol's style sheet (apol.css).
2024-05-02 10:55:37 +02:00
Petr Lautrbach
3a271f5265 SETools 4.5.0
- Add graphical results for information flow analysis and domain
  transition analysis, available in apol, sedta, and seinfoflow.

- Add tooltips, What's This?, and detail popups in apol to help
  cross-referencing query and analysis results along with
  context-sensitive help.
2024-04-23 14:29:31 +02:00
Fedora Release Engineering
cc080e498e Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 02:41:23 +00:00
Petr Lautrbach
65fa161f6f SETools 4.4.4 release 2023-12-11 15:56:42 +01:00
Petr Lautrbach
3eb6ca82a8 setools-4.4.3-2
- Use Qt 6
2023-09-05 13:28:08 +02:00
5 changed files with 166 additions and 14 deletions

4
.gitignore vendored
View file

@ -15,3 +15,7 @@ setools-3.3.8-f1e5b20.tar.bz2
/4.4.1.tar.gz
/4.4.2.tar.gz
/4.4.3.tar.gz
/4.4.4.tar.gz
/4.5.0.tar.gz
/4.5.1.tar.gz
/4.6.0.tar.gz

43
156.patch Normal file
View file

@ -0,0 +1,43 @@
From 39f7c88251925463c38f5000f6178fe70b484f44 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Tue, 8 Apr 2025 11:22:47 +0200
Subject: [PATCH] Remove redundant runtime requirement on setuptools
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The dependency was dropped in 99a1cf3b50cd8bf502b5070293c4d1bf792d1566
Add a build time dependency for setup.py build_ext on Python 3.12+
which no longer contains distutils.
Signed-off-by: Miro Hrončok <miro@hroncok.cz>
---
pyproject.toml | 2 +-
tox.ini | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index f7815a15..28ae121a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -39,7 +39,7 @@ classifiers = ["Development Status :: 5 - Production/Stable",
requires-python=">=3.10"
# also requires libsepol.so and libselinux.so.
-dependencies = ["setuptools"]
+dependencies = []
optional-dependencies.analysis = ["networkx>=2.6",
"pygraphviz"]
diff --git a/tox.ini b/tox.ini
index 8fa6954f..b2a21d6b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -56,5 +56,6 @@ deps = networkx>=2.6
pygraphviz
pytest-qt
pytest-xvfb
+ setuptools;python_version>="3.12"
commands_pre = {envpython} setup.py build_ext -i
commands = {envpython} -m pytest tests

42
157.patch Normal file
View file

@ -0,0 +1,42 @@
From a33a2e394435316f3822e89ac9c2a9aabab17252 Mon Sep 17 00:00:00 2001
From: Pranav Lawate <pran.lawate@gmail.com>
Date: Tue, 30 Sep 2025 22:29:10 +0530
Subject: [PATCH] Fix seinfo argument parsing when policy path follows query
options
Signed-off-by: Pranav Lawate <pran.lawate@gmail.com>
---
seinfo | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/seinfo b/seinfo
index 99180c36..d04ec320 100755
--- a/seinfo
+++ b/seinfo
@@ -12,6 +12,7 @@ import logging
import signal
import ipaddress
import warnings
+from pathlib import Path
from typing import Callable, List, Tuple
@@ -102,6 +103,18 @@ xen.add_argument("--devicetreecon", help="Print all devicetreecon statements.",
args = parser.parse_args()
+# Fix argument misparsing: when policy is None and a query option is a string,
+# check if the string is actually a policy file that is incorrectly consumed by the query option
+if not args.policy:
+ # Check all query options defined in the queries argument group
+ for action in queries._group_actions:
+ value = getattr(args, action.dest, None)
+ if isinstance(value, str) and Path(value).exists():
+ # This query argument consumed the policy path - fix it
+ args.policy = value
+ setattr(args, action.dest, True)
+ break
+
if args.debug:
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s|%(levelname)s|%(name)s|%(message)s')

View file

@ -1,26 +1,29 @@
%global sepol_ver 3.5-1
%global selinux_ver 3.5-1
%global sepol_ver 3.9
%global selinux_ver 3.9
Name: setools
Version: 4.4.3
Release: 1%{?dist}
Version: 4.6.0
Release: 4%{?dist}
Summary: Policy analysis tools for SELinux
License: GPL-2.0-only and LGPL-2.1-only
License: GPL-2.0-only AND LGPL-2.1-only
URL: https://github.com/SELinuxProject/setools/wiki
Source0: https://github.com/SELinuxProject/setools/archive/%{version}.tar.gz
Source1: setools.pam
Source2: apol.desktop
# Remove redundant runtime requirement on setuptools
Patch: https://github.com/SELinuxProject/setools/pull/156.patch
# Fix seinfo argument parsing when policy path follows query
Patch: https://github.com/SELinuxProject/setools/pull/157.patch
Obsoletes: setools < 4.0.0, setools-devel < 4.0.0
BuildRequires: flex, bison
BuildRequires: glibc-devel, gcc, git-core
BuildRequires: libsepol-devel >= %{sepol_ver}, libsepol-static >= %{sepol_ver}
BuildRequires: qt5-qtbase-devel
BuildRequires: swig
BuildRequires: python3-Cython
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: libselinux-devel
Requires: %{name}-console = %{version}-%{release}
@ -69,8 +72,6 @@ This package includes the following console tools:
Summary: Policy analysis tools for SELinux
License: LGPL-2.1-only
Obsoletes: setools-libs < 4.0.0
%{?python_provide:%python_provide python3-setools}
Requires: python3-setuptools
%description -n python3-setools
SETools is a collection of graphical tools, command-line tools, and
@ -81,7 +82,7 @@ Python 3 modules designed to facilitate SELinux policy analysis.
Summary: Policy analysis graphical tools for SELinux
License: GPL-2.0-only
Requires: python3-setools = %{version}-%{release}
Requires: python3-qt5
Requires: python3-pyqt6 python3-pyqt6-sip
Requires: python3-networkx
%description gui
@ -93,16 +94,21 @@ Python modules designed to facilitate SELinux policy analysis.
%autosetup -p 1 -S git -n setools-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
%check
%if %{?_with_check:1}%{!?_with_check:0}
%{__python3} setup.py test
# dnf install python3-pytest python3-pytest-qt
%pytest
%endif
@ -144,6 +150,63 @@ Python modules designed to facilitate SELinux policy analysis.
%{_mandir}/ru/man1/apol*
%changelog
* Mon Dec 01 2025 Veronika Syncakova <vsyncako@redhat.com> - 4.6.0-4
- Fix seinfo argument parsing when policy path follows query options
* Thu Oct 02 2025 Miro Hrončok <mhroncok@redhat.com> - 4.6.0-3
- Drop redundant runtime requirement on python3-setuptools (redux)
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 4.6.0-2
- Rebuilt for Python 3.14.0rc3 bytecode
* Tue Sep 09 2025 Petr Lautrbach <lautrbach@redhat.com> - 4.6.0-1
- SETools 4.6.0
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 4.5.1-11
- Rebuilt for Python 3.14.0rc2 bytecode
* Mon Aug 04 2025 Miro Hrončok <mhroncok@redhat.com> - 4.5.1-10
- Drop redundant runtime requirement on python3-setuptools (correction)
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sat Jul 05 2025 Petr Lautrbach <lautrbach@redhat.com> - 4.5.1-8
- Rebuilt with SELinux userspace 3.9-rc2 release
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 4.5.1-7
- Rebuilt for Python 3.14
* Tue Apr 01 2025 Miro Hrončok <mhroncok@redhat.com> - 4.5.1-6
- Drop redundant runtime requirement on python3-setuptools, dropped in setools 4.5.1
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 4.5.1-3
- Rebuilt for Python 3.13
* Thu May 02 2024 Petr Lautrbach <lautrbach@redhat.com> - 4.5.1-2
- Fix License tag
* Thu May 02 2024 Petr Lautrbach <lautrbach@redhat.com> - 4.5.1-1
- SETools 4.5.1
* Thu Apr 18 2024 Petr Lautrbach <lautrbach@redhat.com> - 4.5.0-1
- SETools 4.5.0
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Dec 11 2023 Petr Lautrbach <lautrbach@redhat.com> - 4.4.4-1
- SETools 4.4.4 release
* Mon Aug 28 2023 Petr Lautrbach <lautrbach@redhat.com> - 4.4.3-2
- Use Qt 6
* Wed Aug 9 2023 Petr Lautrbach <lautrbach@redhat.com> - 4.4.3-1
- SETools 4.4.3 release

View file

@ -1 +1 @@
SHA512 (4.4.3.tar.gz) = dcea6f10af0f46cb7f06aa1b29a757de7dbc30b52fe705c51a4f395d6cc25bfc7b78c15b6fc5c09ec05a2bbe8316bc79b87156304de5fe098040007d33a70143
SHA512 (4.6.0.tar.gz) = 5b654f480f285717d15fa55f754fbd00cb030a0d8af8342d901e0514c4fdbacb7873e19420dab98540eaa481c687ff1e03423df893c0d1744eb4c53eb81afbf5