All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] conntrack-tools: Fix missing capability
@ 2022-04-29 15:17 Bassem Boubaker
  0 siblings, 0 replies; only message in thread
From: Bassem Boubaker @ 2022-04-29 15:17 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Bassem Boubaker

From: Bassem Boubaker <boubaker.bassem.1991l@gmail.com>

The commit fix this error message: Do not forget that you need *root* or CAP_NET_ADMIN capabilities ;-)
---
 .../recipes-filter/conntrack-tools/conntrack-tools_1.4.6.bb  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-networking/recipes-filter/conntrack-tools/conntrack-tools_1.4.6.bb b/meta-networking/recipes-filter/conntrack-tools/conntrack-tools_1.4.6.bb
index de6a72e78..e76238fe0 100644
--- a/meta-networking/recipes-filter/conntrack-tools/conntrack-tools_1.4.6.bb
+++ b/meta-networking/recipes-filter/conntrack-tools/conntrack-tools_1.4.6.bb
@@ -32,3 +32,8 @@ do_install:append() {
     sed -i 's!/var/!${localstatedir}/!g' ${D}/${sysconfdir}/init.d/conntrack-failover ${D}/${sysconfdir}/init.d/conntrackd ${D}/${sysconfdir}/conntrackd/conntrackd.conf.sample
     sed -i 's!^export PATH=.*!export PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}/${sysconfdir}/init.d/conntrackd
 }
+
+# fix error message: Do not forget that you need *root* or CAP_NET_ADMIN capabilities ;-)
+pkg_postinst:${PN} () {
+    setcap cap_net_admin+ep $D/${sbindir}/conntrack"
+}
\ No newline at end of file
-- 
2.25.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-29 15:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 15:17 [PATCH] conntrack-tools: Fix missing capability Bassem Boubaker

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.