Skip to contentSkip to conversation

package/git: add xdg SELinux module

PATCH Applied Fabrice Fontaine 2 participants 2 messages Jan 10, 2022 – Jan 11, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/git: add xdg SELinux module

xdg SELinux module is needed to avoid the following build failure raised since bump of refpolicy to version 2.20220106 in commit f6691d122ce25fc580ca88243f79f75cc2808ca7 and
https://github.com/SELinuxProject/refpolicy/commit/64e637d895c516d7a6b6cbcd46b187136279fddd:

policy/modules/services/git.te:121:ERROR 'attribute xdg_config_type is not declared' at token ';' on line 115358:
typeattribute git_xdg_config_t xdg_config_type;
#line 121
checkpolicy: error(s) encountered while parsing configuration
Rules.monolithic:78: recipe for target 'policy.30' failed

Fixes:
- http://autobuild.buildroot.org/results/98d5b3db313000855721c0ad994951fe8cc781c0

---
 package/git/git.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/git/git.mk +1 -1
index 556921a9fc..90b1acd6a4 100644
@@ -10,7 +10,7 @@ GIT_SITE = $(BR2_KERNEL_MIRROR)/software/scm/git
 GIT_LICENSE = GPL-2.0, LGPL-2.1+
 GIT_LICENSE_FILES = COPYING LGPL-2.1
 GIT_CPE_ID_VENDOR = git-scm
-GIT_SELINUX_MODULES = apache git
+GIT_SELINUX_MODULES = apache git xdg
 GIT_DEPENDENCIES = zlib $(TARGET_NLS_DEPENDENCIES)
 # We're patching configure.ac
 GIT_AUTORECONF = YES
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 11 lines · On Mon, 10 Jan 2022 08:58:04 +0100 Fabrice Fontaine…

xdg SELinux module is needed to avoid the following build failure raised since bump of refpolicy to version 2.20220106 in commit f6691d122ce25fc580ca88243f79f75cc2808ca7 and
https://github.com/SELinuxProject/refpolicy/commit/64e637d895c516d7a6b6cbcd46b187136279fddd:

policy/modules/services/git.te:121:ERROR 'attribute xdg_config_type is not declared' at token ';' on line 115358:
typeattribute git_xdg_config_t xdg_config_type;
#line 121
checkpolicy: error(s) encountered while parsing configuration
Rules.monolithic:78: recipe for target 'policy.30' failed

Quoted 7 lines

Fixes:
- http://autobuild.buildroot.org/results/98d5b3db313000855721c0ad994951fe8cc781c0

---
 package/git/git.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot