Commit 21d279cf authored by Lennart Poettering's avatar Lennart Poettering
Browse files

namespace: temporaily reset umask when creating private /tmp

parent fc8af9ff
......@@ -253,11 +253,19 @@ int setup_namespace(
}
if (need_private) {
mode_t u;
memcpy(private_dir, tmp_dir, sizeof(tmp_dir)-1);
u = umask(0000);
if (mkdir(private_dir, 0777 + S_ISVTX) < 0) {
umask(u);
r = -errno;
goto fail;
}
umask(u);
remove_private = true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment