PHPDaemon/Thread/IPC.php 1 location
|
@@ 141-148 (lines=8) @@
|
138 |
|
} |
139 |
|
|
140 |
|
if (Daemon::$config->chroot->value !== '/') { |
141 |
|
if (posix_getuid() != 0) { |
142 |
|
$this->log('You must have the root privileges to change root.'); |
143 |
|
exit(0); |
144 |
|
} elseif (!chroot(Daemon::$config->chroot->value)) { |
145 |
|
Daemon::log('Couldn\'t change root to \'' . Daemon::$config->chroot->value . '\'.'); |
146 |
|
exit(0); |
147 |
|
} |
148 |
|
} |
149 |
|
|
150 |
|
if (isset(Daemon::$config->group->value)) { |
151 |
|
if ($sg === false) { |
PHPDaemon/Thread/Worker.php 1 location
|
@@ 407-414 (lines=8) @@
|
404 |
|
|
405 |
|
$flushCache = false; |
406 |
|
if (Daemon::$config->chroot->value !== '/') { |
407 |
|
if (posix_getuid() != 0) { |
408 |
|
Daemon::log('You must have the root privileges to change root.'); |
409 |
|
exit(0); |
410 |
|
} elseif (!chroot(Daemon::$config->chroot->value)) { |
411 |
|
Daemon::log('Couldn\'t change root to \'' . Daemon::$config->chroot->value . '\'.'); |
412 |
|
exit(0); |
413 |
|
} |
414 |
|
$flushCache = true; |
415 |
|
} |
416 |
|
|
417 |
|
if (isset(Daemon::$config->group->value)) { |