Hello @jeremias.tx,
setting the capabilites in the do_install-task was not successfull.
But what worked for me was to do the following in my image recipe:
DEPENDS += "libcap-native"
set_cap() {
setcap CAP_NET_RAW,CAP_NET_ADMIN,CAP_SYS_RESOURCE,CAP_SYS_TIME+ep ${IMAGE_ROOTFS}/usr/bin/<my_application>
}
ROOTFS_POSTPROCESS_COMMAND += "set_cap; "
Best regards,
Markus