mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-05 14:09:53 +03:00
policycoreutils: add option to build audit2allow
This python utility scans the logs for messages logged when the system denied permission for operations, and generates a snippet of policy rules which, if loaded into policy, might have allowed those operations to succeed. However, this utility only generates Type Enforcement (TE) allow rules. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com> [Thomas: adjust Config.in to propagate the dependencies of sepolgen, checkpolicy and python3.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
eb77bd3dab
commit
005a5f33f2
@@ -50,6 +50,20 @@ ifeq ($(BR2_PACKAGE_POLICYCOREUTILS_RESTORECOND),y)
|
||||
POLICYCOREUTILS_MAKE_DIRS += restorecond
|
||||
POLICYCOREUTILS_DEPENDENCIES += libglib2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_POLICYCOREUTILS_AUDIT2ALLOW),y)
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
||||
POLICYCOREUTILS_DEPENDENCIES += python3
|
||||
POLICYCOREUTILS_MAKE_OPTS += PYLIBVER="python$(PYTHON3_VERSION_MAJOR)"
|
||||
else
|
||||
POLICYCOREUTILS_DEPENDENCIES += python
|
||||
POLICYCOREUTILS_MAKE_OPTS += PYLIBVER="python$(PYTHON_VERSION_MAJOR)"
|
||||
endif
|
||||
|
||||
POLICYCOREUTILS_DEPENDENCIES += sepolgen checkpolicy
|
||||
POLICYCOREUTILS_MAKE_DIRS += audit2allow
|
||||
endif
|
||||
|
||||
# We need to pass DESTDIR at build time because it's used by
|
||||
# policycoreutils build system to find headers and libraries.
|
||||
define POLICYCOREUTILS_BUILD_CMDS
|
||||
|
||||
Reference in New Issue
Block a user