[Buildroot] [PATCH v2] package/refpolicy: Add option to disable "dontaudit" rules

Antoine Tenart atenart at kernel.org
Thu Jan 28 14:24:25 UTC 2021


Quoting Maxime Chevallier (2021-01-28 13:52:56)
> --- a/package/refpolicy/refpolicy.mk
> +++ b/package/refpolicy/refpolicy.mk
> @@ -116,6 +116,14 @@ define REFPOLICY_BUILD_CMDS
>         $(REFPOLICY_MAKE) -C $(@D) policy
>  endef
>  
> +ifeq ($(BR2_REFPOLICY_DISABLE_DONTAUDIT),y)
> +define REFPOLICY_DISABLE_DONTAUDIT_CMDS
> +       $(REFPOLICY_MAKE) -C $(@D) enableaudit
> +endef
> +endif
> +
> +REFPOLICY_POST_BUILD_HOOKS += REFPOLICY_DISABLE_DONTAUDIT_CMDS

I think this could be in the ifeq block as well.

Otherwise, LGTM.

Thanks!
Antoine


More information about the buildroot mailing list