HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   Jailkit problems with creating/updating users (http://www.howtoforge.com/forums/showthread.php?t=59021)

tio289 9th October 2012 11:36

Jailkit problems with creating/updating users
 
Hi guys, I found and fix error in jailkit plugin.

Problem is if You have setup with HIGH security level, when ispconfig sets file atribute "i".

In jailkit plugin:

Code:

line 83: $app->system->web_folder_protection($web['document_root'],false);
                               
// load the server configuration options
$app->uses("getconf");
$this->data = $data;
$this->app = $app;
$this->jailkit_config = $app->getconf->get_server_config($conf["server_id"], 'jailkit');
                               
line 91: $this->_update_website_security_level();
                       
$this->_setup_jailkit_chroot();

on line 83 removes attr "i" from document root, but on line 91 we calling function to update security level which enables attr "i" and so setup jailkit fails.

this same error is in update method too.

I simple move line 91 before line 83 and its working now.

till 9th October 2012 12:00

Thanks for the patch, I've added it to the bugtracker.


All times are GMT +2. The time now is 19:30.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.