[Buildroot] makedev capabilities support - capablities lost after booting the image

Baruch Siach baruch at tkos.co.il
Mon Apr 16 12:31:43 UTC 2018


Hi Alex,

On Mon, Apr 16, 2018 at 05:17:42AM -0700, AAlex_ wrote:
> setting the cappabilities of an executable via BR2_ROOT_FS_DEVICE_TABLE as
> descripted in [9.5.1. Setting file permissions and ownership and adding
> custom devices nodes] fails.
> When capabilities specified to an file they are set in the disk image, means
> if i mount the disk image file and check via getcap it get the excpected
> capabilities. 
> But if the builroot system boots, the capablities are lost.
> Is there another lib/flag? The buildroot system supports capabilities
> because I set it via an startscript within buildroot system, but this is not
> longer possible because I want to swtich to read only root_fs. This is the
> reason I want to set the capablilities via device_table.

Not all filesystems support extended attributes. What filesystem do you use? 
How do you generate your filesystem?

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


More information about the buildroot mailing list