diff options
author | June McEnroe <june@causal.agency> | 2021-01-14 21:45:37 +0000 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-14 21:46:10 +0000 |
commit | b8811407d6a665e32559392de1a41a16893b6526 (patch) | |
tree | 8c730753200baaeebaf647b8f536f81d63c801ad | |
parent | Add dirent.h to c.sh includes (diff) | |
download | src-b8811407d6a665e32559392de1a41a16893b6526.tar.gz src-b8811407d6a665e32559392de1a41a16893b6526.zip |
Call cap_rights_limit on stderr too
Diffstat (limited to '')
-rw-r--r-- | www/text.causal.agency/igp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/www/text.causal.agency/igp.c b/www/text.causal.agency/igp.c index 8e3c742f..d7db2b28 100644 --- a/www/text.causal.agency/igp.c +++ b/www/text.causal.agency/igp.c @@ -70,6 +70,7 @@ int main(int argc, char *argv[]) { error = cap_enter() || cap_rights_limit(STDIN_FILENO, cap_rights_init(&cap, CAP_READ)) || cap_rights_limit(STDOUT_FILENO, cap_rights_init(&cap, CAP_WRITE)) + || cap_rights_limit(STDERR_FILENO, &cap) || cap_rights_limit( root, cap_rights_init(&cap, CAP_PREAD, CAP_FSTATAT, CAP_FSTATFS) ); |