diff options
author | VG <vg@devys.org> | 2016-03-01 15:15:13 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2016-03-01 15:15:13 +0100 |
commit | 8b62487759bce5b0ffc548e3dbedc6fd453283e5 (patch) | |
tree | 91404a23ad5735a85c93485b7d4253ba5dbc3f17 | |
parent | 06bec13226e2eb8c7bcfeaea2bd22b63fe5f1dd8 (diff) | |
download | runwithcaps-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-x | run_with_only_cap_net_bind_service.py | 2 |
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 |