From b8811407d6a665e32559392de1a41a16893b6526 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 14 Jan 2021 21:45:37 +0000 Subject: Call cap_rights_limit on stderr too --- www/text.causal.agency/igp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'www') 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) ); -- cgit 1.4.1