PHPDaemon/Thread/IPC.php 1 location
|
@@ 133-140 (lines=8) @@
|
130 |
|
} |
131 |
|
|
132 |
|
if (Daemon::$config->chroot->value !== '/') { |
133 |
|
if (posix_getuid() != 0) { |
134 |
|
$this->log('You must have the root privileges to change root.'); |
135 |
|
exit(0); |
136 |
|
} elseif (!chroot(Daemon::$config->chroot->value)) { |
137 |
|
Daemon::log('Couldn\'t change root to \'' . Daemon::$config->chroot->value . '\'.'); |
138 |
|
exit(0); |
139 |
|
} |
140 |
|
} |
141 |
|
|
142 |
|
if (isset(Daemon::$config->group->value)) { |
143 |
|
if ($sg === false) { |
PHPDaemon/Thread/Worker.php 1 location
|
@@ 365-372 (lines=8) @@
|
362 |
|
|
363 |
|
$flushCache = false; |
364 |
|
if (Daemon::$config->chroot->value !== '/') { |
365 |
|
if (posix_getuid() != 0) { |
366 |
|
Daemon::log('You must have the root privileges to change root.'); |
367 |
|
exit(0); |
368 |
|
} elseif (!chroot(Daemon::$config->chroot->value)) { |
369 |
|
Daemon::log('Couldn\'t change root to \'' . Daemon::$config->chroot->value . '\'.'); |
370 |
|
exit(0); |
371 |
|
} |
372 |
|
$flushCache = true; |
373 |
|
} |
374 |
|
|
375 |
|
if (isset(Daemon::$config->group->value)) { |