PHPDaemon/Thread/IPC.php 1 location
|
@@ 140-147 (lines=8) @@
|
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
if (Daemon::$config->chroot->value !== '/') { |
| 140 |
|
if (posix_getuid() != 0) { |
| 141 |
|
$this->log('You must have the root privileges to change root.'); |
| 142 |
|
exit(0); |
| 143 |
|
} |
| 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)) { |
PHPDaemon/Thread/Worker.php 1 location
|
@@ 393-400 (lines=8) @@
|
| 390 |
|
|
| 391 |
|
$flushCache = false; |
| 392 |
|
if (Daemon::$config->chroot->value !== '/') { |
| 393 |
|
if (posix_getuid() != 0) { |
| 394 |
|
Daemon::log('You must have the root privileges to change root.'); |
| 395 |
|
exit(0); |
| 396 |
|
} |
| 397 |
|
elseif (!chroot(Daemon::$config->chroot->value)) { |
| 398 |
|
Daemon::log('Couldn\'t change root to \'' . Daemon::$config->chroot->value . '\'.'); |
| 399 |
|
exit(0); |
| 400 |
|
} |
| 401 |
|
$flushCache = true; |
| 402 |
|
} |
| 403 |
|
|