"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "server/plugins-available/cron_jailkit_plugin.inc.php" between
ISPConfig-3.2.3.tar.gz and ISPConfig-3.2.4.tar.gz

About: ISPConfig is an ISP management and Hosting Control Panel (for different Managed Services).

cron_jailkit_plugin.inc.php  (ISPConfig-3.2.3):cron_jailkit_plugin.inc.php  (ISPConfig-3.2.4)
skipping to change at line 337 skipping to change at line 337
if(!is_file($this->parent_domain['document_root'].'/etc/passwd')) $app->system->exec_safe('touch ?', $this->parent_domain['document_root'].'/etc/ passwd'); if(!is_file($this->parent_domain['document_root'].'/etc/passwd')) $app->system->exec_safe('touch ?', $this->parent_domain['document_root'].'/etc/ passwd');
// IMPORTANT! // IMPORTANT!
// ALWAYS create the user. Even if the user was created before // ALWAYS create the user. Even if the user was created before
// if we check if the user exists, then a update (no shell -> jai lkit) will not work // if we check if the user exists, then a update (no shell -> jai lkit) will not work
// and the user has FULL ACCESS to the root of the server! // and the user has FULL ACCESS to the root of the server!
$app->system->create_jailkit_user($this->parent_domain['system_us er'], $this->parent_domain['document_root'], $jailkit_chroot_userhome); $app->system->create_jailkit_user($this->parent_domain['system_us er'], $this->parent_domain['document_root'], $jailkit_chroot_userhome);
if(!is_dir($this->parent_domain['document_root'].$jailkit_chroot_ userhome)) { if(!is_dir($this->parent_domain['document_root'].$jailkit_chroot_ userhome)) {
$app->system->mkdir($this->parent_domain['document_root'] .$jailkit_chroot_userhome, 0750, true); $app->system->mkdir($this->parent_domain['document_root'] .$jailkit_chroot_userhome, 0750, true);
$app->system->chown($this->parent_domain['document_root']
.$jailkit_chroot_userhome, $this->parent_domain['system_user']);
$app->system->chgrp($this->parent_domain['document_root']
.$jailkit_chroot_userhome, $this->parent_domain['system_group']);
} }
$app->system->chown($this->parent_domain['document_root'].$jailki
t_chroot_userhome, $this->parent_domain['system_user']);
$app->system->chgrp($this->parent_domain['document_root'].$jailki
t_chroot_userhome, $this->parent_domain['system_group']);
} }
function _get_home_dir($username) function _get_home_dir($username)
{ {
return str_replace("[username]", $username, $this->jailkit_config ["jailkit_chroot_home"]); return str_replace("[username]", $username, $this->jailkit_config ["jailkit_chroot_home"]);
} }
//* Update the website root directory permissions depending on the securi ty level //* Update the website root directory permissions depending on the securi ty level
function _update_website_security_level() { function _update_website_security_level() {
global $app, $conf; global $app, $conf;
 End of changes. 2 change blocks. 
4 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)