4 ms·
Took a quick look... can you try this diff? --- pspax.c 2021-02-26 09:46:14.304092510 +0100 +++ pspax.c 2021-02-25 11:25:42.439550015 +0100 @@ -413,7 +41
by eqvinox 6y ago
Took a quick look... can you try this diff?
--- pspax.c 2021-02-26 09:46:14.304092510 +0100
+++ pspax.c 2021-02-25 11:25:42.439550015 +0100
@@ -413,7 +413,7 @@
/* this is a non-POSIX function */
caps = NULL;
- WRAP_SYSCAP(capgetp(pfd, cap_d));
+ WRAP_SYSCAP(cap_d = cap_get_pid(pid));
WRAP_SYSCAP(caps = cap_to_text(cap_d, &length));
if (pwd && strlen(pwd->pw_name) >= 8)
- neop1x 6y agoThe problem was I didn't compile it with pcap support initially (it is not enabled by default). It needs: make USE_CAP=yes Then it showed "=ep" for every process BUT your patch fixed it and now it correctly lists process capabilities. According to man, capgetp() is deprecated and cap_get_pid() should be used instead anyway. EDIT: I can see your patch merged upstream, good work! :)