tools/capable: fix compilation error
authorMauricio Vásquez <mauricio@kinvolk.io>
Thu, 26 Mar 2020 19:36:22 +0000 (14:36 -0500)
committeryonghong-song <ys114321@gmail.com>
Sat, 28 Mar 2020 19:12:38 +0000 (12:12 -0700)
9d7feeed87c5 ("tools: add option --unique to capable.py") introduced a
compilation error when the --unique flag is passed.

Signed-off-by: Mauricio Vásquez <mauricio@kinvolk.io>
tools/capable.py

index c19cddb..3852e22 100755 (executable)
@@ -193,7 +193,7 @@ int kprobe__cap_capable(struct pt_regs *ctx, const struct cred *cred,
     struct repeat_t repeat = {0,};
     repeat.cap = cap;
 #if CGROUPSET
-    repeat.cgroupid = bpf_get_current_cgroup_id(),
+    repeat.cgroupid = bpf_get_current_cgroup_id();
 #else
     repeat.tgid = tgid;
 #endif