Skip to contentSkip to conversation

How to set file capability when root-fs is read-only.

Buildroot AAlex_ 1 participant 2 messages Apr 13, 2018

lore
Share & tools
lore

AAlex_

author
#0 lore raw

Hi,
how to deal with file-capabilities (setcap) when buildroot generates the root-fs and mount as read only is selected?
I have an executable that needs several file-capabilities (eg. cap_sys_boot) because the executable should not run as root-user.
Currently I use the rootfs as read-write file-system and the setcap is called during Startup-Process.
How can buildroot set the capabilites?
The application is build by buildroot as a package and calling setcap in _INSTALL_TARGET_CMDS fails.

Regards,
Alex

--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/