aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVG <vg@devys.org>2016-03-01 15:15:13 +0100
committerVG <vg@devys.org>2016-03-01 15:15:13 +0100
commit8b62487759bce5b0ffc548e3dbedc6fd453283e5 (patch)
tree91404a23ad5735a85c93485b7d4253ba5dbc3f17
parent06bec13226e2eb8c7bcfeaea2bd22b63fe5f1dd8 (diff)
downloadrunwithcaps-8b62487759bce5b0ffc548e3dbedc6fd453283e5.tar.gz
runwithcaps-8b62487759bce5b0ffc548e3dbedc6fd453283e5.tar.bz2
runwithcaps-8b62487759bce5b0ffc548e3dbedc6fd453283e5.zip
fix sed expression to match tabs too since kernel header use it for the lasts caps
-rwxr-xr-xrun_with_only_cap_net_bind_service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_with_only_cap_net_bind_service.py b/run_with_only_cap_net_bind_service.py
index 9b4d6cc..d5b88a6 100755
--- a/run_with_only_cap_net_bind_service.py
+++ b/run_with_only_cap_net_bind_service.py
@@ -50,7 +50,7 @@ CAP_CLEAR = 0
CAP_SET = 1
# generated list with command line below:
-# sed -n 's/^#define \(CAP_.*\) \+\([0-9]\+\).*$/\1 = \2/p' /usr/include/linux/capability.h
+# sed -n 's/^#define \(CAP_.*\)\s\+\([0-9]\+\).*$/\1 = \2/p' /usr/include/linux/capability.h
CAP_CHOWN = 0
CAP_DAC_OVERRIDE = 1
CAP_DAC_READ_SEARCH = 2