53 Commits

Author SHA256 Message Date
ed8709e832 Accepting request 1307169 from home:fbonazzi:branches:security:SELinux
- Fix test multibuild flavor
  - Change the test flavor so that it does not produce any RPMs, avoiding
    duplicate binaries across the setools and setools-test packages
  - Disable debuginfo generation for the test flavor, so that it does not break
    due to the missing files.

OBS-URL: https://build.opensuse.org/request/show/1307169
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=116
2025-09-26 08:31:28 +00:00
f0c0f27586 Accepting request 1306566 from home:fbonazzi:branches:security:SELinux
- Simplify test multibuild flavor to fix broken build in Factory due to
  debuginfo generation

OBS-URL: https://build.opensuse.org/request/show/1306566
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=114
2025-09-22 15:04:06 +00:00
Hu
f9c827082e Accepting request 1304045 from home:fbonazzi:branches:security:SELinux
- Move tests to a test multibuild flavor

OBS-URL: https://build.opensuse.org/request/show/1304045
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=112
2025-09-11 09:22:59 +00:00
Hu
3f4297e3a4 Accepting request 1303538 from home:fbonazzi:branches:security:SELinux
- Update to version 4.6.0:
  - User Visible Changes
    * Add seinfo option to see roles allowed for a specified type.
    * Add sechecker module for asserting kernel modules are read-only.
    * Add support for the nlmsg extended permission.
  - Under The Hood Changes
    * Significant code quality and unit testing improvements.
    * Drop methods marked for deprecation.
  - Packaging Changes
    * Refactor packaging to use pyproject.toml.
- Add %check section and run tests (Factory only)
- Fix %fdupes call to clean up duplicates for all Python versions
- Add minimum required dependency versions

OBS-URL: https://build.opensuse.org/request/show/1303538
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=111
2025-09-10 08:25:09 +00:00
Hu
010bd5e1d6 Accepting request 1289289 from home:cahu:branches:security:SELinux
- Drop legacy %python_build and %python_install macros and 
  switch to pyproject macros instead as requested by packaging team

OBS-URL: https://build.opensuse.org/request/show/1289289
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=109
2025-06-30 15:24:24 +00:00
0030835c45 Accepting request 1201807 from home:fbonazzi:branches:security:SELinux
- Add upstream tarball signature
- Add key 85649089C9F385B35F40568D21698FD29D4355A4 to setools.keyring

OBS-URL: https://build.opensuse.org/request/show/1201807
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=107
2024-09-23 06:21:25 +00:00
Hu
2555057bbb Accepting request 1177606 from home:cahu:security:SELinux:fixleapbuild
- Rework packaging to modern python packaging
  - python-setools module now builds for python310, python311, python312
    for tw and builds for python311 in 15.4 + 15.5
  - setools-console scripts will use python311 as default in factory, 15.4
    and 15.5 
  - moved %dir %{_docdir}/%{name}/ and %{_docdir}/%{name}/* out of the
    python-setools module into setools-console as it does not belong in there
    and causes conflicts between python versions
  - moved %{python_sitearch}/setoolsgui from setools-gui into the
    python-setools module for multiversion build

OBS-URL: https://build.opensuse.org/request/show/1177606
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=105
2024-06-03 13:59:28 +00:00
605bb7182d Accepting request 1171337 from home:fbonazzi:branches:security:SELinux
- Update to version 4.5.1:
  - Correct annotations of NetworkX types to make it optional again.
  -  Fix packaging issue for apol's style sheet (apol.css).
- Drop 0001-Make-networkx-optional-again-Fixes-125.patch fixed upstream
- Change networkx Requires to Suggests

OBS-URL: https://build.opensuse.org/request/show/1171337
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=103
2024-05-02 11:01:21 +00:00
c0eedad7be Accepting request 1168868 from home:cahu:security:SELinux:policytest2
- Fix build for 15.4 and 15.5:
  - Minimum required python version is 3.11, so building only for python311 
  - Remove dependency for networkx: 0001-Make-networkx-optional-again-Fixes-125.patch 
- Update to version 4.5.0:
  - User Visible Changes
    * 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.
  - Under The Hood Changes
    * Rework apol to fully generate the UI programmatically.
    * Update apol to PyQt6
    * Replace deprecated uses of pkg_resources and distutils.
    * Begin adding unit tests for apol UI.
  - Updated Dependencies
    SETools now higher minimum versions of the following dependencies:
    * Python 3.10
    * NetworkX 2.6
    * PyQt6
    * Cython 0.29.14
  - New Dependencies
    * pygraphviz (for seinfoflow, sedta, apol)

OBS-URL: https://build.opensuse.org/request/show/1168868
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=101
2024-04-18 13:51:47 +00:00
edf62e67bb Accepting request 1132434 from home:jsegitz:branches:security:SELinux
- Update to version 4.4.4:
  * Update for compiling with libsepol 3.6.

OBS-URL: https://build.opensuse.org/request/show/1132434
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=99
2023-12-11 08:28:18 +00:00
Hu
10e681edc6 Accepting request 1115870 from home:cahu:branches:security:SELinux
Add missing reference bsc#1200649 to changelog

OBS-URL: https://build.opensuse.org/request/show/1115870
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=97
2023-10-05 15:22:53 +00:00
b67adb8be8 Accepting request 1101719 from home:fbonazzi:branches:security:SELinux
- Update to version 4.4.3:
  * Fix compilation with Cython 3.0.0.
  * Improve man pages.
  * Remove neverallow options in sediff.
  * Add -r option to seinfoflow to get flows into the source type.
  * Reject a rule with no permissions as invalid policy.

OBS-URL: https://build.opensuse.org/request/show/1101719
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=95
2023-08-03 11:19:58 +00:00
b32de8a89e Accepting request 1098586 from home:shunghsiyu:branches:security:SELinux
Add python3-setuptools as a runtime requirement of python3-setools (boo#1213305)

OBS-URL: https://build.opensuse.org/request/show/1098586
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=93
2023-07-17 15:00:50 +00:00
fc744e54d5 Accepting request 1082976 from home:fbonazzi:branches:security:SELinux
- Update to version 4.4.2:
  * Make NetworkX optional. sedta and seinfoflow tools, along with the
    equivalent analyses in apol require NetworkX.
  * Remove neverallow options in sesearch and apol. These are not usable
    since they are removed in the final binary policy.
- Drop make_networkx_optional.patch, now merged upstream

OBS-URL: https://build.opensuse.org/request/show/1082976
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=91
2023-04-26 11:36:22 +00:00
39d7c96664 Accepting request 1063460 from home:fbonazzi:branches:security:SELinux
- Update to version 4.4.1:
  * Replace deprecated NetworkX function use in information flow and domain
    transition analysis. This function was removed in NetworkX 3.0.
  * Fix bug in apol copy and cut functions when copying from a tree view.
  * Fix bug with extended permission set construction when a range includes
    0x0.
  * Add sesearch -Sp option for permission subset match.
  * Fix error in man page description for sesearch -ep option.
  * Improve output stability in constraint, common, class, role, and user
    queries.
  * Updated permission map.
  * Fix bug in sechecker parsing of multiline values.
  * Other code cleanups not visible to users.

OBS-URL: https://build.opensuse.org/request/show/1063460
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=89
2023-02-06 19:11:22 +00:00
8d000653f5 Accepting request 1001198 from home:jsegitz:branches:security:SELinux
- Add make_networkx_optional.patch to cut down installation requirements

OBS-URL: https://build.opensuse.org/request/show/1001198
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=86
2022-09-05 06:41:50 +00:00
ac827008d7 Accepting request 1000891 from home:jsegitz:branches:security:SELinux
- Added README.SUSE and drop recommend for python3-networkx altogether
  (bsc#1202676)

OBS-URL: https://build.opensuse.org/request/show/1000891
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=85
2022-09-02 12:53:45 +00:00
24043dc960 Accepting request 956666 from home:shunghsiyu:branches:openSUSE:Factory
Make dependency on python3-networkx optional.

python3-network pulls in python38-matplotlib and python38-scipy, which then pulls in various mathematical and graphical libraries that are not needed on a minimal server environment (e.g. MicroOS).

While sedta will not work without python3-networkx, with this patch (already merged upstream https://github.com/SELinuxProject/setools/pull/68) it will emit an error message pointing user to install python3-networkx instead of throwing ImportError.

Further more, by default zypper install recommended packages as well, so general users are unlikely to even notice the difference. It only makes a difference if recommends are disabled; either explicitly by giving --no-recommends to zypper or setting solver.onlyRequires=true in zypp.conf, the latter is what MicroOS does.

OBS-URL: https://build.opensuse.org/request/show/956666
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=84
2022-02-22 15:38:03 +00:00
b4032c25d8 Accepting request 898351 from home:dimstar:Factory
- Fix dependency of python3-setools: require python3, not python
  (which is python2).

  gh#openSUSE/python-rpm-macros#73
- Fix setools-gui dependencies, we are using python-qt5 and not
  * Fixed sediff issue where properties header would display when not
  * Added methods to TypeAttribute class to make it a complete Python
  * Genfscon now will look up classes rather than using fixed values
  * Support for Python 2.7 was dropped
- Deleted setools-3.3.7-libselinux-2.3.patch, we have a
- Add setools-swig-2x.patch: correctly detect swig 2.x

OBS-URL: https://build.opensuse.org/request/show/898351
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=82
2021-06-09 05:13:16 +00:00
ab50bbad06 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=80 2021-03-12 07:59:19 +00:00
494f3ef843 Accepting request 845832 from home:mcepl:branches:security:SELinux
OBS-URL: https://build.opensuse.org/request/show/845832
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=77
2020-11-06 10:40:07 +00:00
cfc97abfc2 Accepting request 843140 from home:kukuk:selinux
- Cleanup BuildRequires
- Fix setools-gui dependencies, we are using python-qt5 and not 
  tcl/tk

OBS-URL: https://build.opensuse.org/request/show/843140
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=75
2020-10-21 08:17:37 +00:00
e884e1ce86 Accepting request 823546 from home:kukuk:selinux
- python3-setools needs python3-networkx

OBS-URL: https://build.opensuse.org/request/show/823546
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=73
2020-07-30 12:23:01 +00:00
6034429f06 Accepting request 791203 from home:jsegitz:branches:security:SELinux
- Update to the upstream version 4.3.0:
  * 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
- Dropped python3.8-compat.patch

OBS-URL: https://build.opensuse.org/request/show/791203
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=71
2020-04-03 13:08:27 +00:00
fdb9e98a89 Accepting request 744477 from home:mcepl:branches:security:SELinux
- Add python3.8-compat.patch to allow build with Python 3.8
  Still doesn't work perfectly because of gh#SELinuxProject/setools#31
  (I had to remove -Werror)

- Update to the upstream version 4.2.2:
  - Remove source policy references from man pages, as loading
    source policies is no longer supported.
  - Fixed a performance regression in alias loading after alias
    dereferencing fixes in 4.2.1.

OBS-URL: https://build.opensuse.org/request/show/744477
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=69
2019-11-11 07:10:34 +00:00
dcc9438e20 Accepting request 671814 from home:jsegitz:branches:security:SELinux
- Update to 4.2.1
  * Set SIGPIPE handler for CLI tools.
  * Fixed alias dereferencing in TypeQuery and type, category, and
    sensitivity lookups.
  * Fixed sediff bug for rendering modified nodecons.
  * Fixed devicetreecon count output.
  * Fixed policy target platform check.
  * Fixed bug in creating permission set intersection in apol.
- Provide python-setools

OBS-URL: https://build.opensuse.org/request/show/671814
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=67
2019-02-05 10:31:49 +00:00
436ccb2aff Accepting request 657418 from home:jsegitz:branches:security:SELinux
- Changed requires of console subpackage to python3-setools

OBS-URL: https://build.opensuse.org/request/show/657418
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=65
2018-12-12 09:16:42 +00:00
273f4c3d8e OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=64 2018-12-06 14:43:39 +00:00
39ce6ca7bd OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=63 2018-11-23 15:27:19 +00:00
2b05ddfe81 - Added warning.patch in former change to prevent warnings from
stopping the build

OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=61
2018-06-11 08:22:15 +00:00
a1533b69d2 Accepting request 609011 from home:mcepl:SELinux
Rebase to 4.1.1

OBS-URL: https://build.opensuse.org/request/show/609011
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=60
2018-05-23 08:42:50 +00:00
da735a653d Accepting request 559322 from home:jsegitz:branches:security:SELinux
- Update to version 4.0.1. SETools was reimplemented in Python.
- Doesn't build and obsoletes
  * setools-libs
  * setools-java
  * setools-tcl
  * setools-devel
  anymore since the files are not povided anymore
- Dropped
  * add-to-header-define_cond_filename_trans.patch
  * implicit-fortify-decl.patch
  * setools-3.3.5-javacflags.patch
  * setools-3.3.5-nonvoid.patch
  * setools-3.3.5-strcmp.patch
  * setools-am121.patch
  * setools-libsepol.patch
  * setools-setup_py-prefix.patch
  * setools-swig-2.0.7.patch
  * setools-swig-2x.patch
  * setools-tclass.patch

OBS-URL: https://build.opensuse.org/request/show/559322
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=59
2017-12-22 12:36:48 +00:00
46f80aaec5 Accepting request 530069 from home:coolo:branches:openSUSE:Factory
- Move to minimum java target of 1.6, 1.5 is no longer supported

OBS-URL: https://build.opensuse.org/request/show/530069
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=57
2017-10-05 13:56:04 +00:00
bb1aa3667a Accepting request 506436 from home:jsegitz:setools
- Added implicit-fortify-decl.patch to prevent warnings about implicit
  declarations

OBS-URL: https://build.opensuse.org/request/show/506436
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=55
2017-06-27 09:29:02 +00:00
f81af4d7c1 Accepting request 422158 from home:jsegitz:branches:security:SELinux
- Deleted setools-3.3.7-libselinux-2.3.patch, we have a 
  current libselinux now

OBS-URL: https://build.opensuse.org/request/show/422158
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=53
2016-08-25 15:49:00 +00:00
7240ea27ac Accepting request 416659 from home:jsegitz:branches:security:SELinux
- Patch to work with current libsepol, libselinux
  Added: setools-tclass.patch

OBS-URL: https://build.opensuse.org/request/show/416659
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=52
2016-08-03 08:12:13 +00:00
075bfdb51e Accepting request 292382 from home:posophe:branches:security:SELinux
update

OBS-URL: https://build.opensuse.org/request/show/292382
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=50
2015-03-23 08:20:39 +00:00
1ff4993a01 Accepting request 235465 from home:oertel:branches:security:SELinux
- add patch: setools-3.3.7-libselinux-2.3.patch
  fix build with libselinux-2.3

OBS-URL: https://build.opensuse.org/request/show/235465
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=48
2014-05-27 07:23:25 +00:00
d3b73f6bfe Accepting request 203214 from home:vitezslav_cizek:branches:security:SELinux
- don't fail if there are no never-allow rules in the policy
- remove dangling symlink /usr/bin/seaudit (bnc#812285)
  * added 0003-Since-we-do-not-ship-neverallow-rules-all-always-fai.patch

OBS-URL: https://build.opensuse.org/request/show/203214
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=46
2013-10-14 10:52:29 +00:00
Vítězslav Čížek
a72fd88e07 Accepting request 198868 from home:pgajdos
- javapackages-tools in buildrequires

OBS-URL: https://build.opensuse.org/request/show/198868
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=44
2013-09-13 11:19:43 +00:00
dd88360d33 Accepting request 162516 from home:vitezslav_cizek:branches:security:SELinux
- added patches:
  * 0006-Changes-to-support-named-file_trans-rules.patch
  * 0007-Remove-unused-variables.patch
    - these two add support for named file trans rules
  * add-to-header-define_cond_filename_trans.patch
    - add missing define_cond_filename_trans() declaration

OBS-URL: https://build.opensuse.org/request/show/162516
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=42
2013-04-04 07:27:45 +00:00
19d79d17e0 Accepting request 139262 from home:coolo:branches:openSUSE:Factory
- add explicit buildrequire on libbz2-devel

OBS-URL: https://build.opensuse.org/request/show/139262
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=40
2012-10-25 11:42:38 +00:00
3ffd38cba6 Accepting request 131878 from home:namtrac:branches:security:SELinux
- Add setools-3.3.6-libsepol.patch to fix compilation with new
  libsepol

OBS-URL: https://build.opensuse.org/request/show/131878
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=38
2012-08-28 19:44:09 +00:00
237136b41f - removed 2 upstream patches
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=37
2012-08-07 12:47:01 +00:00
fbfbe1c748 - updated to version 3.3.7
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=36
2012-08-05 15:44:53 +00:00
Ismail Dönmez
d54fc19916 Accepting request 126959 from home:coolo:branches:openSUSE:Factory
- add setools-am121.patch to fix build with automake 1.12.1

OBS-URL: https://build.opensuse.org/request/show/126959
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=33
2012-07-03 09:35:39 +00:00
4f388a9e89 - fix build with swig-2.0.7 (untested, though)
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=29
2012-06-14 10:02:19 +00:00
dbdd909ab0 Accepting request 104540 from devel:openSUSE:Factory:patch-license
patch license to follow spdx.org standard

OBS-URL: https://build.opensuse.org/request/show/104540
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=27
2012-02-13 15:04:09 +00:00
Vítězslav Čížek
93ac6f3717 Accepting request 93215 from home:coolo:removelibtool
add libtool to buildrequires

OBS-URL: https://build.opensuse.org/request/show/93215
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=25
2011-11-23 09:46:50 +00:00
Sascha Peilicke
3ce9085b2b Accepting request 71668 from security:SELinux
Add setools-swig-2x.patch to correctly detect swig 2.x (forwarded request 71385 from namtrac)

OBS-URL: https://build.opensuse.org/request/show/71668
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/setools?expand=0&rev=9
2011-05-30 08:44:57 +00:00