From: Maxime Chevallier Date: Mon, 28 Dec 2020 16:11:29 +0000 (+0100) Subject: package/iputils: add SELinux module X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=560d42efae6a5bce60e496ddf7b0651f483f67d6;p=buildroot.git package/iputils: add SELinux module Support for the iputils is added by the admin/netutils module in the SELinux refpolicy for the following tools : - arping - ping - tracepath - traceroute6 Support for rdisc is added by services/rdisc. Support for tftpd is added by services/tftp. Note: listing the same SELinux module multiple times is OK, as the list of modules is eventually $(sort)ed anyway. Signed-off-by: Maxime Chevallier [yann.morin.1998@free.fr: simplifications to only use positive logic] Signed-off-by: Yann E. MORIN --- diff --git a/package/iputils/iputils.mk b/package/iputils/iputils.mk index 4f8d9cb768..92974592a6 100644 --- a/package/iputils/iputils.mk +++ b/package/iputils/iputils.mk @@ -27,6 +27,15 @@ IPUTILS_CONF_OPTS += \ -DBUILD_TRACEROUTE6=$(if $(BR2_PACKAGE_IPUTILS_TRACEROUTE6),true,false) \ -DBUILD_NINFOD=$(if $(BR2_PACKAGE_IPUTILS_NINFOD),true,false) +# Selectively select the appropriate SELinux refpolicy modules +IPUTILS_SELINUX_MODULES = \ + $(if $(BR2_PACKAGE_IPUTILS_ARPING),netutils) \ + $(if $(BR2_PACKAGE_IPUTILS_PING),netutils) \ + $(if $(BR2_PACKAGE_IPUTILS_TRACEPATH),netutils) \ + $(if $(BR2_PACKAGE_IPUTILS_TRACEROUTE6),netutils) \ + $(if $(BR2_PACKAGE_IPUTILS_RDISC),rdisc) \ + $(if $(BR2_PACKAGE_IPUTILS_TFTPD),tftp) + # # arping #