[Buildroot] [PATCH/next v2 3/4] package/openrc: add libselinux support

Yann E. MORIN yann.morin.1998 at free.fr
Wed Mar 11 17:26:23 UTC 2020


Carlos, All,

On 2020-03-01 12:17 -0300, unixmania at gmail.com spake thusly:
> From: Adam Duskett <Aduskett at gmail.com>
> 
> If the libselinux package is selected, add the package to the dependency list
> and explicitly set OPENRC_MAKE_OPTS += MKSELINUX=yes

This SELinux stuff has always been a bit boo-I-dont-want-too-touch for
me, because it looks overly complex, so just adding the dependency
without explanations on how openrc uses/fits with SELinux is a bit too
much for me to handle, so I defer to a SELinux-knowledgeable maintainer
to look a it...

Regards,
Yann E. MORIN.

> Signed-off-by: Adam Duskett <Aduskett at gmail.com>
> Signed-off-by: Carlos Santos <unixmania at gmail.com>
> ---
>  package/openrc/openrc.mk | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/package/openrc/openrc.mk b/package/openrc/openrc.mk
> index 6057451bfe..97536dad37 100644
> --- a/package/openrc/openrc.mk
> +++ b/package/openrc/openrc.mk
> @@ -18,7 +18,6 @@ OPENRC_MAKE_OPTS = \
>  	LIBNAME=lib \
>  	LIBEXECDIR=/usr/libexec/rc \
>  	MKPKGCONFIG=no \
> -	MKSELINUX=no \
>  	MKSYSVINIT=yes \
>  	BRANDING="Buildroot $(BR2_VERSION_FULL)" \
>  	CC=$(TARGET_CC)
> @@ -29,6 +28,13 @@ else
>  OPENRC_MAKE_OPTS += MKSTATICLIBS=yes
>  endif
>  
> +ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
> +OPENRC_MAKE_OPTS += MKSELINUX=yes
> +OPENRC_DEPENDENCIES += libselinux
> +else
> +OPENRC_MAKE_OPTS += MKSELINUX=no
> +endif
> +
>  define OPENRC_BUILD_CMDS
>  	$(MAKE) $(OPENRC_MAKE_OPTS) -C $(@D)
>  endef
> -- 
> 2.18.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list