[Buildroot] [PATCH 10/10] package/refpolicy: bump to version 2.20250213

Arnout Vandecappelle arnout at rnout.be
Sat May 17 09:09:18 UTC 2025



On 15/05/2025 14:10, Adam Duskett wrote:
>   - Add the dbus policy as a default module due to commit 523b279.
>     This commit added dbus contexts to the selinuxutil module, which makes
>     the dbus module mandatory. If the dbus module is set to no, refpolicy
>     fails to build with the following error:
> 
>     ```
>     policy/modules/system/selinuxutil.te:102:ERROR 'attribute
>     dbusd_system_bus_client is not within scope' at token ';'
>     on line 155976:
>     ```
> 
>     As a temporary solution, the dbus policy is enabled by default and an
>     issue has been raised here:
>     https://github.com/SELinuxProject/refpolicy/issues/906

  Vincent pointed out in that ticket that there is already a PR that fixes it. 
So instead, I downloaded that patch.

  There was also an existing patch in a versioned directory that I removed 
(after checking that it was applied upsream).


  Regards,
  Arnout

> Signed-off-by: Adam Duskett <adam.duskett at amarulasolutions.com>
> ---
>   package/refpolicy/refpolicy.hash | 2 +-
>   package/refpolicy/refpolicy.mk   | 3 ++-
>   2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/package/refpolicy/refpolicy.hash b/package/refpolicy/refpolicy.hash
> index 5e876d4a43..76bbf482ae 100644
> --- a/package/refpolicy/refpolicy.hash
> +++ b/package/refpolicy/refpolicy.hash
> @@ -1,5 +1,5 @@
>   # From https://github.com/SELinuxProject/refpolicy/releases
> -sha256  7ed41f4f45189b9ee9706da8ac357eccc103651b56daabaddb54c436e8117cf9  refpolicy-2.20240226.tar.bz2
> +sha256  d2487c49420e8710e999b18bbe699fbff033fe5adc5127e3f0c7dafaa9b4d209  refpolicy-2.20250213.tar.bz2
>   
>   # Locally computed
>   sha256  204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994  COPYING
> diff --git a/package/refpolicy/refpolicy.mk b/package/refpolicy/refpolicy.mk
> index 74ccb79624..a25a9c45ee 100644
> --- a/package/refpolicy/refpolicy.mk
> +++ b/package/refpolicy/refpolicy.mk
> @@ -23,7 +23,7 @@ REFPOLICY_SITE = $(call qstrip,$(BR2_PACKAGE_REFPOLICY_CUSTOM_REPO_URL))
>   REFPOLICY_SITE_METHOD = git
>   BR_NO_CHECK_HASH_FOR += $(REFPOLICY_SOURCE)
>   else
> -REFPOLICY_VERSION = 2.20240226
> +REFPOLICY_VERSION = 2.20250213
>   REFPOLICY_SOURCE = refpolicy-$(REFPOLICY_VERSION).tar.bz2
>   REFPOLICY_SITE = https://github.com/SELinuxProject/refpolicy/releases/download/RELEASE_$(subst .,_,$(REFPOLICY_VERSION))
>   endif
> @@ -55,6 +55,7 @@ $(foreach dir,$(REFPOLICY_EXTRA_MODULES_DIRS),\
>   REFPOLICY_MODULES = \
>   	application \
>   	authlogin \
> +	dbus \
>   	getty \
>   	init \
>   	libraries \



More information about the buildroot mailing list