Skip to contentSkip to conversation

makedev capabilities support - capablities lost after booting the image

Buildroot AAlex_ 2 participants 3 messages Apr 16, 2018

lore
Share & tools
lore

AAlex_

author
#0 lore raw

Hi,
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.

Regards,
Alex

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

#1 lore raw

Hi Alex,

Quoted 11 lines · AAlex_

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

Signature · 3 lines
     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 -