All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/refpolicy: enable refpolicy's xdg module when systemd is enabled
@ 2021-10-31 22:42 Romain Naour
  2021-11-01  6:10 ` ratbert90
  0 siblings, 1 reply; 6+ messages in thread
From: Romain Naour @ 2021-10-31 22:42 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour, Antoine Tenart

policy/modules/system/systemd.te requires xdg module enabled [1]
otherwise refpolicy fail to build:

policy/modules/system/systemd.te:288:ERROR 'attribute xdg_config_type is not declared' at token ';' on line 508447:

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/1710552468
https://gitlab.com/buildroot.org/buildroot/-/jobs/1710552470

[1] https://github.com/SELinuxProject/refpolicy/blob/RELEASE_2_20210908/policy/modules/system/systemd.te#L288

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Antoine Tenart <atenart@kernel.org>
---
 package/refpolicy/refpolicy.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/refpolicy/refpolicy.mk b/package/refpolicy/refpolicy.mk
index 975c3b584c..b1d101e311 100644
--- a/package/refpolicy/refpolicy.mk
+++ b/package/refpolicy/refpolicy.mk
@@ -69,6 +69,7 @@ REFPOLICY_MODULES = \
 	sysnetwork \
 	unconfined \
 	userdomain \
+	$(if $(BR2_PACKAGE_SYSTEMD),xdg) \
 	$(PACKAGES_SELINUX_MODULES) \
 	$(call qstrip,$(BR2_REFPOLICY_EXTRA_MODULES)) \
 	$(foreach d,$(REFPOLICY_EXTRA_MODULES_DIRS),\
-- 
2.31.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-03 22:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-31 22:42 [Buildroot] [PATCH] package/refpolicy: enable refpolicy's xdg module when systemd is enabled Romain Naour
2021-11-01  6:10 ` ratbert90
2021-11-01  9:23   ` Romain Naour
2021-11-02 17:26     ` Adam Duskett
2021-11-03 21:06       ` Romain Naour
2021-11-03 22:04         ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.