* [Buildroot] makedev capabilities support - capablities lost after booting the image
@ 2018-04-16 12:17 AAlex_
2018-04-16 12:31 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: AAlex_ @ 2018-04-16 12:17 UTC (permalink / raw)
To: buildroot
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] makedev capabilities support - capablities lost after booting the image
2018-04-16 12:17 [Buildroot] makedev capabilities support - capablities lost after booting the image AAlex_
@ 2018-04-16 12:31 ` Baruch Siach
2018-04-16 20:18 ` AAlex_
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2018-04-16 12:31 UTC (permalink / raw)
To: buildroot
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 -
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] makedev capabilities support - capablities lost after booting the image
2018-04-16 12:31 ` Baruch Siach
@ 2018-04-16 20:18 ` AAlex_
0 siblings, 0 replies; 3+ messages in thread
From: AAlex_ @ 2018-04-16 20:18 UTC (permalink / raw)
To: buildroot
Hi,
Changed to ext4, but thanks for the hint.
Forgot to set the ext4 posix Extension in Kernel.
Now it works.
Alex
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-16 20:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-16 12:17 [Buildroot] makedev capabilities support - capablities lost after booting the image AAlex_
2018-04-16 12:31 ` Baruch Siach
2018-04-16 20:18 ` AAlex_
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.