selinux-python: Update to 3.5, reorganize package
authorJeffery To <jeffery.to@gmail.com>
Fri, 9 Jun 2023 04:41:13 +0000 (12:41 +0800)
committerJeffery To <jeffery.to@gmail.com>
Tue, 20 Jun 2023 02:32:56 +0000 (10:32 +0800)
commit6bd71dac0cb7711777feaf04d1156d2e0eb9e1bd
treea31e157fb6fa4202dff5a848ea28e6aa57d017ab
parent61e79aad69015d71286d7b47f6bcccee20baf796
selinux-python: Update to 3.5, reorganize package

* Added packages:

  * python3-seobject

    Contains the seobject.py library file which was previously included
    in selinux-semanage

  * selinux-sepolicy

    Contains the sepolicy and sepolgen tools which were previously
    included in python3-sepolicy

  * selinux-sepolgen-ifgen

    Contains the sepolgen-ifgen tool which was previously included in
    selinux-audit2allow

  * selinux-python

    A meta-package to install all tools

* Change the python3-sepolgen data_dir from /usr/share/sepolgen to
  /etc/sepolgen (updated 0001-sepolgen-adjust-data_dir.patch), and add
  the directory to conffiles

  By default, the sepolgen-ifgen tool writes to a file named
  "interface_info" in the data directory, to be read by the audit2allow
  tool. The header comment in the perm_map file also suggests that the
  file is customizable.

  The best place for these files would be in /var/lib, but /etc is more
  appropriate than /usr.

* Remove gui files from python3-sepolicy (0003-sepolicy-no-gui.patch)

* Fix ModuleNotFoundError raised by sepolicy
  (0004-sepolicy-fix-get_os_version-except.patch)

  Patch has been submitted upstream:
  https://lore.kernel.org/selinux/20230619063217.3165462-1-jeffery.to@gmail.com/

* Update package titles, descriptions, and dependencies

* Use Py3Package to build Python bytecode and source packages

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
utils/selinux-python/Makefile
utils/selinux-python/patches/0001-sepolgen-adjust-data_dir.patch
utils/selinux-python/patches/0003-sepolicy-no-gui.patch [new file with mode: 0644]
utils/selinux-python/patches/0004-sepolicy-fix-get_os_version-except.patch [new file with mode: 0644]
utils/selinux-python/patches/0005-no-translations.patch [new file with mode: 0644]