Linux capabilities with yocto
问题 I want to give several files Linux capabilities (e.g. CAP_NET_ADMIN). I am using Yocto and my file system should be read-only and must not be changed after flashing the software (this means pkg_postinst with setcap that would usually work is not possible). Is there any other way to give capabilities to files without changing the file structure after booting the target? 回答1: pkg_postinst scripts already get executed while building the read-only rootfs, so this approach works. You must ensure