From 8b62487759bce5b0ffc548e3dbedc6fd453283e5 Mon Sep 17 00:00:00 2001 From: VG Date: Tue, 1 Mar 2016 15:15:13 +0100 Subject: fix sed expression to match tabs too since kernel header use it for the lasts caps --- run_with_only_cap_net_bind_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3