From 2006cc7c7a1a3219f31cc1669c85d7fa7739f4b8 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 27 Jan 2022 12:57:35 +0100 Subject: [PATCH 1/1] Reset umask --- suidgw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/suidgw.c b/suidgw.c index 43e3394..2a14766 100644 --- a/suidgw.c +++ b/suidgw.c @@ -171,6 +171,7 @@ int main(int argc UNUSED, char **argv) { sanitize_fds(); sanitize_env(); + umask(0077); if (geteuid()) die("Must be run setuid"); -- 2.39.5