From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] How to set capabilities in rootfs images ?
Date: Mon, 10 Feb 2014 11:25:50 +0100 (CET) [thread overview]
Message-ID: <480464634.5225273.1392027950285.JavaMail.root@openwide.fr> (raw)
In-Reply-To: <1364311655.5222144.1392024742879.JavaMail.root@openwide.fr>
Hi all,
I would like to know if it's possible to set capabilities whith setcap for a specific binary
inside buildroot's rootfs image ?
I created a user account on target and I want to be able to run a program that needs CAP_SYS_NICE.
From what I have seen, it would be possible only in the fakeroot since the fakeroot's script
start with "chown -R 0:0".
chown drop all capabilities.
It appears that setcap tool is not working in fakeroot.
So, I updated fakeroot to the latest version (1.20) to have the last commit:
https://alioth.debian.org/scm/browser.php?group_id=30001
Also, I'm not sure if I need a specific version of host-tar (1.27.1) to save capabilities.
Do you have any suggestions ?
Thanks,
--
Romain Naour
OPEN WIDE Ing?nierie - Paris
23/25, rue Daviel| 75013 PARIS
http://ingenierie.openwide.fr
Le blog des technologies libres et embarqu?es :
http://www.linuxembedded.fr
parent reply other threads:[~2014-02-10 10:25 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1364311655.5222144.1392024742879.JavaMail.root@openwide.fr>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=480464634.5225273.1392027950285.JavaMail.root@openwide.fr \
--to=romain.naour@openwide.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox