summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPhilippe Reynes <philippe.reynes@sagemcom.com>2016-06-29 17:19:44 +0200
committerPeter Korsgaard <peter@korsgaard.com>2016-06-30 12:13:38 +0200
commit688059ebb23227fb13aad319df6e78686ea6e14a (patch)
tree5a848ce8eaa5b54bdfb89aeb6fc6ab53f0f5ae53 /docs
parent4520524ba055706236db9f00dd79f1b2e2e87fde (diff)
downloadbuildroot-688059ebb23227fb13aad319df6e78686ea6e14a.tar.gz
buildroot-688059ebb23227fb13aad319df6e78686ea6e14a.zip
makedevs: add capability support
Add the support of capability to makedevs as extended attribute. Now, it's possible to add a line "|xattr <capability>" after a file description to also add a capability to this file. It's possible to add severals capabilities with severals lines. [Peter: extend doc, reword Config.in, extend error message, use HOST_MAKEDEVS_CFLAGS/LDFLAGS for all flags] Signed-off-by: Philippe Reynes <philippe.reynes@sagemcom.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/manual/makedev-syntax.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/manual/makedev-syntax.txt b/docs/manual/makedev-syntax.txt
index e4dffc95aa..d6efb31d42 100644
--- a/docs/manual/makedev-syntax.txt
+++ b/docs/manual/makedev-syntax.txt
@@ -71,3 +71,33 @@ and then for device files corresponding to the partitions of
/dev/hda b 640 root root 3 1 1 1 15
----
+Extended attributes are supported if
++BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES+ is enabled.
+This is done by adding a line starting with +|xattr+ after
+the line describing the file. Right now, only capability
+is supported as extended attribute.
+
+|=====================
+| \|xattr | capability
+|=====================
+
+- +|xattr+ is a "flag" that indicate an extended attribute
+- +capability+ is a capability to add to the previous file
+
+If you want to add the capability cap_sys_admin to the binary foo,
+you will write :
+
+----
+/usr/bin/foo f 755 root root - - - - -
+|xattr cap_sys_admin+eip
+----
+
+You can add several capabilities to a file by using several +|xattr+ lines.
+If you want to add the capability cap_sys_admin and cap_net_admin to the
+binary foo, you will write :
+
+----
+/usr/bin/foo f 755 root root - - - - -
+|xattr cap_sys_admin+eip
+|xattr cap_net_admin+eip
+----
OpenPOWER on IntegriCloud