Bug#767760: busybox: Please build selinux support
Package: busybox
Followup-For: Bug #767760
Hi,
Please find attached here a new patch for this bug.
It's not enabling SELinux support in the udeb and it's not adding new
applets.
Kind regards,
Laurent Bigonville
-- System Information:
Debian Release: 10.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE:fr (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages busybox depends on:
ii libc6 2.28-10
busybox recommends no packages.
busybox suggests no packages.
-- no debconf information
diff -Nru busybox-1.30.1/debian/config/os/hurd busybox-1.30.1/debian/config/os/hurd
--- busybox-1.30.1/debian/config/os/hurd 2019-03-02 08:57:49.000000000 +0100
+++ busybox-1.30.1/debian/config/os/hurd 2019-05-06 16:49:16.000000000 +0200
@@ -7,3 +7,4 @@
CONFIG_TASKSET=n
# hurd does not have a working equivalent of /proc/self/exe
CONFIG_BUSYBOX_EXEC_PATH="/bin/busybox"
+CONFIG_SELINUX=n
diff -Nru busybox-1.30.1/debian/config/os/kfreebsd busybox-1.30.1/debian/config/os/kfreebsd
--- busybox-1.30.1/debian/config/os/kfreebsd 2019-03-02 08:57:49.000000000 +0100
+++ busybox-1.30.1/debian/config/os/kfreebsd 2019-05-06 16:49:16.000000000 +0200
@@ -3,3 +3,4 @@
CONFIG_SWAPONOFF=y
CONFIG_TASKSET=n
CONFIG_FEATURE_MOUNT_NFS=n
+CONFIG_SELINUX=n
diff -Nru busybox-1.30.1/debian/config/pkg/deb busybox-1.30.1/debian/config/pkg/deb
--- busybox-1.30.1/debian/config/pkg/deb 2019-04-01 07:17:50.000000000 +0200
+++ busybox-1.30.1/debian/config/pkg/deb 2019-05-06 16:49:16.000000000 +0200
@@ -31,7 +31,7 @@
CONFIG_FEATURE_SUID_CONFIG_QUIET=y
# CONFIG_FEATURE_PREFER_APPLETS is not set
CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
-# CONFIG_SELINUX is not set
+CONFIG_SELINUX=y
# CONFIG_FEATURE_CLEAN_UP is not set
CONFIG_FEATURE_SYSLOG=y
CONFIG_PLATFORM_LINUX=y
@@ -1070,6 +1070,10 @@
CONFIG_SVC=y
CONFIG_SVOK=y
# CONFIG_SVLOGD is not set
+
+#
+# SELinux Utilities
+#
# CONFIG_CHCON is not set
# CONFIG_GETENFORCE is not set
# CONFIG_GETSEBOOL is not set
diff -Nru busybox-1.30.1/debian/config/pkg/static busybox-1.30.1/debian/config/pkg/static
--- busybox-1.30.1/debian/config/pkg/static 2019-04-01 07:17:50.000000000 +0200
+++ busybox-1.30.1/debian/config/pkg/static 2019-05-06 16:49:16.000000000 +0200
@@ -31,7 +31,7 @@
CONFIG_FEATURE_SUID_CONFIG_QUIET=y
CONFIG_FEATURE_PREFER_APPLETS=y
CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
-# CONFIG_SELINUX is not set
+CONFIG_SELINUX=y
# CONFIG_FEATURE_CLEAN_UP is not set
CONFIG_FEATURE_SYSLOG=y
CONFIG_PLATFORM_LINUX=y
@@ -1070,6 +1070,10 @@
CONFIG_SVC=y
CONFIG_SVOK=y
# CONFIG_SVLOGD is not set
+
+#
+# SELinux Utilities
+#
# CONFIG_CHCON is not set
# CONFIG_GETENFORCE is not set
# CONFIG_GETSEBOOL is not set
diff -Nru busybox-1.30.1/debian/control busybox-1.30.1/debian/control
--- busybox-1.30.1/debian/control 2019-03-30 15:00:23.000000000 +0100
+++ busybox-1.30.1/debian/control 2019-05-06 16:49:16.000000000 +0200
@@ -5,7 +5,7 @@
Uploaders:
Chris Boot <bootc@debian.org>,
Christoph Biedl <debian.axhn@manchmal.in-ulm.de>,
-Build-Depends: debhelper (>= 11~), zip
+Build-Depends: debhelper (>= 11~), zip, libselinux1-dev [linux-any], pkg-config [linux-any]
Standards-Version: 4.1.5
Vcs-Git: https://salsa.debian.org/installer-team/busybox.git
Vcs-Browser: https://salsa.debian.org/installer-team/busybox
Reply to: