From 4c12626c8e3491570b395d68380543e10c98ad33 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 1 Aug 2011 20:52:18 +0200 Subject: umask: change default umask to 0022 just to be sure, and set it explicitly in all binaries, in order to make sure it is set when started from the terminal --- src/nspawn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/nspawn.c') diff --git a/src/nspawn.c b/src/nspawn.c index a1ed425f05..f4d63ea265 100644 --- a/src/nspawn.c +++ b/src/nspawn.c @@ -314,7 +314,6 @@ static int copy_devnodes(const char *dest, const char *console) { } finish: - umask(u); return r; @@ -776,7 +775,7 @@ int main(int argc, char *argv[]) { goto child_fail; } - umask(0002); + umask(0022); if (drop_capabilities() < 0) goto child_fail; -- cgit v1.2.3-54-g00ecf