From ee9a396f2225b68766f44a643470d66fd6a2b266 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 12 Jan 2020 18:21:32 -0500 Subject: Use the CAP_PREAD right Required for the rewind call when loading the CA. --- bounce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bounce.c b/bounce.c index 7ea1c3f..ac30cd9 100644 --- a/bounce.c +++ b/bounce.c @@ -362,7 +362,7 @@ int main(int argc, char *argv[]) { cap_rights_t saveRights, fileRights, sockRights, bindRights; cap_rights_init(&saveRights, CAP_WRITE); - cap_rights_init(&fileRights, CAP_FCNTL, CAP_FSTAT, CAP_LOOKUP, CAP_READ); + cap_rights_init(&fileRights, CAP_FCNTL, CAP_FSTAT, CAP_LOOKUP, CAP_PREAD); cap_rights_init(&sockRights, CAP_EVENT, CAP_RECV, CAP_SEND, CAP_SETSOCKOPT); cap_rights_init(&bindRights, CAP_LISTEN, CAP_ACCEPT); cap_rights_merge(&bindRights, &sockRights); -- cgit 1.4.1