mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°1114 - config-itop.php access rights enforcement
This commit is contained in:
@@ -992,7 +992,7 @@ class ApplicationInstaller
|
|||||||
$oConfig->WriteToFile($sConfigFile);
|
$oConfig->WriteToFile($sConfigFile);
|
||||||
|
|
||||||
// try to make the final config file read-only
|
// try to make the final config file read-only
|
||||||
@chmod($sConfigFile, 0444); // Read-only for owner and group, nothing for others
|
@chmod($sConfigFile, 0440); // Read-only for owner and group, nothing for others
|
||||||
|
|
||||||
// Ready to go !!
|
// Ready to go !!
|
||||||
require_once(APPROOT.'core/dict.class.inc.php');
|
require_once(APPROOT.'core/dict.class.inc.php');
|
||||||
@@ -1016,4 +1016,4 @@ class SetupDBBackup extends DBBackup
|
|||||||
{
|
{
|
||||||
SetupPage::log('Error - '.$sMsg);
|
SetupPage::log('Error - '.$sMsg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user