* [Buildroot] [PATCH 1/1] package/refpolicy: fix build with ifplugd
@ 2021-07-31 11:38 Fabrice Fontaine
2021-07-31 22:07 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-07-31 11:38 UTC (permalink / raw)
To: buildroot; +Cc: Antoine Tenart, Fabrice Fontaine
Fix build failure raised since commit
499bf5319bf66ecd28d1b85c39ed7ffdeb5bf296
Fixes:
- http://autobuild.buildroot.org/results/1e27f5b193d40dfb7c73fbe15d1bef91cb92c27d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...ervices-ifplugd.te-make-netutils-opt.patch | 48 +++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 package/refpolicy/0003-policy-modules-services-ifplugd.te-make-netutils-opt.patch
diff --git a/package/refpolicy/0003-policy-modules-services-ifplugd.te-make-netutils-opt.patch b/package/refpolicy/0003-policy-modules-services-ifplugd.te-make-netutils-opt.patch
new file mode 100644
index 0000000000..4001f7fe96
--- /dev/null
+++ b/package/refpolicy/0003-policy-modules-services-ifplugd.te-make-netutils-opt.patch
@@ -0,0 +1,48 @@
+From 6dcfb6715de75677165221ee5bd8d4db6e4a01a7 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 31 Jul 2021 10:58:42 +0200
+Subject: [PATCH 2/2] policy/modules/services/ifplugd.te: make netutils
+ optional
+
+Make netutils optional to avoid the following build failure:
+
+ Compiling targeted policy.30
+ env LD_LIBRARY_PATH="/tmp/instance-3/output-1/host/lib:/tmp/instance-3/output-1/host/usr/lib" /tmp/instance-3/output-1/host/usr/bin/checkpolicy -c 30 -U deny -S -O -E policy.conf -o policy.30
+ policy/modules/services/ifplugd.te:62:ERROR 'type netutils_exec_t is not within scope' at token ';' on line 73694:
+ #line 62
+ allow ifplugd_t netutils_exec_t:file { getattr open map read execute ioctl };
+ checkpolicy: error(s) encountered while parsing configuration
+
+Fixes:
+ - http://autobuild.buildroot.org/results/1e27f5b193d40dfb7c73fbe15d1bef91cb92c27d
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: not sent yet]
+---
+ policy/modules/services/ifplugd.te | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/policy/modules/services/ifplugd.te b/policy/modules/services/ifplugd.te
+index f49b147f7..550eecca4 100644
+--- a/policy/modules/services/ifplugd.te
++++ b/policy/modules/services/ifplugd.te
+@@ -59,8 +59,6 @@ logging_send_syslog_msg(ifplugd_t)
+
+ miscfiles_read_localization(ifplugd_t)
+
+-netutils_domtrans(ifplugd_t)
+-
+ sysnet_domtrans_ifconfig(ifplugd_t)
+ sysnet_domtrans_dhcpc(ifplugd_t)
+ sysnet_delete_dhcpc_runtime_files(ifplugd_t)
+@@ -70,3 +68,7 @@ sysnet_signal_dhcpc(ifplugd_t)
+ optional_policy(`
+ consoletype_exec(ifplugd_t)
+ ')
++
++optional_policy(`
++ netutils_domtrans(ifplugd_t)
++')
+--
+2.30.2
+
--
2.30.2
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/refpolicy: fix build with ifplugd
2021-07-31 11:38 [Buildroot] [PATCH 1/1] package/refpolicy: fix build with ifplugd Fabrice Fontaine
@ 2021-07-31 22:07 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-07-31 22:07 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Antoine Tenart, buildroot
On Sat, 31 Jul 2021 13:38:39 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix build failure raised since commit
> 499bf5319bf66ecd28d1b85c39ed7ffdeb5bf296
>
> Fixes:
> - http://autobuild.buildroot.org/results/1e27f5b193d40dfb7c73fbe15d1bef91cb92c27d
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...ervices-ifplugd.te-make-netutils-opt.patch | 48 +++++++++++++++++++
> 1 file changed, 48 insertions(+)
> create mode 100644 package/refpolicy/0003-policy-modules-services-ifplugd.te-make-netutils-opt.patch
This patch causes a check-package warning: you need to use "git
format-patch -N" when generating patches for packages, so that they
don't have [PATCH 2/2], but [PATCH]. I fixed that and applied. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-31 22:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-31 11:38 [Buildroot] [PATCH 1/1] package/refpolicy: fix build with ifplugd Fabrice Fontaine
2021-07-31 22:07 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox