Re: [yocto] Set linux capabilities on binary on a recipe in meta-oe layer

2018-11-08 Thread Piotr Tworek
Hi Markus, Have you tried doing it in the postinst step executed on your target? Try: pkg_postinst_ontarget_${PN} () { setcap cap_net_raw+eip $D${bindir}/node } RDEPENDS_${PN} += "libcap-bin" /ptw > I have tested to set capabilities on the node binary within a custom recipe > (custom layer

[yocto] [meta-selinux][PATCH] libselinux: Fix build with musl libc.

2018-09-21 Thread Piotr Tworek
From: Piotr Tworek Musl libc does not implement file traversal functions from fts.h. Oe-core provides fts library which implements those. Libselinux makefile allows us to use such additional library by specifying required linker flags via FTS_LDLIBS variable. Signed-off-by: Piotr Tworek

[yocto] [meta-selinux][PATCH] setools: Add missing python runtime deps.

2018-09-21 Thread Piotr Tworek
From: Piotr Tworek The package needs logging, json and argparse modules to start. Additionaly, it also needs libselinux-python in order to really work. Without it it'll just print an error message instructing the user to install it. Signed-off-by: Piotr Tworek --- recipes-security/se