diff options
author | Bassem Boubaker <boubaker.bassem.1991l@gmail.com> | 2022-04-29 17:17:56 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-04-29 19:32:47 -0700 |
commit | 77c2fda04e406c210fe2a1870c8473748302bfb5 (patch) | |
tree | c4776cff14143def9eaed81ba755ab6bcc4b35ab /meta-networking | |
parent | 09a97158f80a779c3f45b3189adcddbd535e5baf (diff) | |
download | meta-openembedded-77c2fda04e406c210fe2a1870c8473748302bfb5.tar.gz |
conntrack-tools: Fix missing capability
The commit fix this error message: Do not forget that you need *root* or CAP_NET_ADMIN capabilities ;-)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-filter/conntrack-tools/conntrack-tools_1.4.6.bb | 5 |
1 files changed, 5 insertions, 0 deletions
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() { | |||
32 | sed -i 's!/var/!${localstatedir}/!g' ${D}/${sysconfdir}/init.d/conntrack-failover ${D}/${sysconfdir}/init.d/conntrackd ${D}/${sysconfdir}/conntrackd/conntrackd.conf.sample | 32 | sed -i 's!/var/!${localstatedir}/!g' ${D}/${sysconfdir}/init.d/conntrack-failover ${D}/${sysconfdir}/init.d/conntrackd ${D}/${sysconfdir}/conntrackd/conntrackd.conf.sample |
33 | sed -i 's!^export PATH=.*!export PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}/${sysconfdir}/init.d/conntrackd | 33 | sed -i 's!^export PATH=.*!export PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}/${sysconfdir}/init.d/conntrackd |
34 | } | 34 | } |
35 | |||
36 | # fix error message: Do not forget that you need *root* or CAP_NET_ADMIN capabilities ;-) | ||
37 | pkg_postinst:${PN} () { | ||
38 | setcap cap_net_admin+ep $D/${sbindir}/conntrack" | ||
39 | } \ No newline at end of file | ||