mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-04 16:08:31 +00:00
fixed a regression in setgroups()
This commit is contained in:
@@ -357,6 +357,10 @@ void uwsgi_as_root() {
|
||||
uwsgi_error("setgid()");
|
||||
exit(1);
|
||||
}
|
||||
if (setgroups(0, NULL)) {
|
||||
uwsgi_error("setgroups()");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
if (uwsgi.uid) {
|
||||
if (!uwsgi.master_as_root) uwsgi_log("setuid() to %d\n", uwsgi.uid);
|
||||
|
||||
@@ -957,6 +957,13 @@ options_parsed:
|
||||
uwsgi.shared_sockets[i].bound = 1;
|
||||
}
|
||||
|
||||
// call jail systems
|
||||
for(i =0; i < uwsgi.gp_cnt; i++) {
|
||||
if (uwsgi.gp[i]->jail) {
|
||||
uwsgi.gp[i]->jail(uwsgi_start, argv);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#ifdef __linux__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user