aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Maxime Chevallier <maxime.chevallier@bootlin.com>2021-01-28 10:27:49 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2021-03-16 23:10:30 +0100
commit8a376df7f154573052aecc4475a7998694e8c0c1 (patch)
treec78c7a5809c224ccaaf5209e129c007bab5c1707
parentd4c0fde91da0d79204a21ed8de1bd410efa1c4d6 (diff)
downloadbuildroot-8a376df7f154573052aecc4475a7998694e8c0c1.tar.gz
buildroot-8a376df7f154573052aecc4475a7998694e8c0c1.tar.bz2
package/alsa-utils: add SELinux repolicy module
The alsa-utils package adds some tools that needs the proper module in the SELinux refpolicy to work properly when SELinux is enabled on the system. Add support for the alsactl tool, through the use of the admin/alsa module. Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/alsa-utils/alsa-utils.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/alsa-utils/alsa-utils.mk b/package/alsa-utils/alsa-utils.mk
index d9f0fea7b4..2658c827a0 100644
--- a/package/alsa-utils/alsa-utils.mk
+++ b/package/alsa-utils/alsa-utils.mk
@@ -15,6 +15,10 @@ ALSA_UTILS_DEPENDENCIES = host-pkgconf alsa-lib \
$(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate) \
$(TARGET_NLS_DEPENDENCIES)
+ifeq ($(BR2_PACKAGE_ALSA_UTILS_ALSACTL),y)
+ALSA_UTILS_SELINUX_MODULES += alsa
+endif
+
ALSA_UTILS_CONF_ENV = \
ac_cv_prog_ncurses5_config=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS) \
LIBS=$(TARGET_NLS_LIBS)