Files
termux-packages/packages/busybox/selinux.patch
termux-pacman-bot ab6c80a480 fix(main/busybox): enable SELinux
- Fixes https://github.com/termux/termux-packages/issues/544

- Tested and confirmed to make the `busybox ls -Z` command work on SELinux-enabled Samsung Galaxy A70 SM-A705FN with Android 13. Output appears correct, closely matching the output of `coreutils`' `ls -Z` command on the same device for various directories, including `/storage/emulated/0` and `/data/data/com.termux/files/home`
2025-12-07 11:05:57 +00:00

14 lines
460 B
Diff

diff --git a/Makefile.flags b/Makefile.flags
index 97cb4dc..b2a4291 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -178,7 +178,7 @@ LDLIBS += pam pam_misc
endif
ifeq ($(CONFIG_SELINUX),y)
-SELINUX_PC_MODULES = libselinux libsepol
+SELINUX_PC_MODULES = libandroid-selinux
$(eval $(call pkg_check_modules,SELINUX,$(SELINUX_PC_MODULES)))
CPPFLAGS += $(SELINUX_CFLAGS)
LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%))