mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 17:11:21 +00:00
* 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>
24 lines
743 B
Diff
24 lines
743 B
Diff
From 4dfa91b1377b6dc57e66443ea1a08c6d79a3a6e2 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
Date: Wed, 2 Oct 2019 12:04:24 +0200
|
|
Subject: [PATCH] sepolgen: adjust data_dir()
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
(changed data_dir prefix from /usr/share to /etc)
|
|
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
|
|
---
|
|
sepolgen/src/sepolgen/defaults.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/sepolgen/src/sepolgen/defaults.py
|
|
+++ b/sepolgen/src/sepolgen/defaults.py
|
|
@@ -57,7 +57,7 @@ Various default settings, including file
|
|
"""
|
|
|
|
def data_dir():
|
|
- return "/var/lib/sepolgen"
|
|
+ return "/etc/sepolgen"
|
|
|
|
def perm_map():
|
|
return data_dir() + "/perm_map"
|