package/alsa-utils: add SELinux repolicy module
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Thu, 28 Jan 2021 09:27:49 +0000 (10:27 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 16 Mar 2021 22:10:30 +0000 (23:10 +0100)
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>
package/alsa-utils/alsa-utils.mk

index d9f0fea7b40948dd614c93b5948d44091422b790..2658c827a0013ce4cc15a5b52dcdbf9a97651b0c 100644 (file)
@@ -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)