From 3f591414070da2373f0c602d95012f0db61cde0e Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 22 Oct 2019 15:02:51 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B01114=20-=20config-itop.php=20access=20ri?= =?UTF-8?q?ghts=20enforcement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- datamodels/2.x/itop-backup/dbrestore.class.inc.php | 2 +- datamodels/2.x/itop-config/config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datamodels/2.x/itop-backup/dbrestore.class.inc.php b/datamodels/2.x/itop-backup/dbrestore.class.inc.php index 984f8463a7..a849a47934 100644 --- a/datamodels/2.x/itop-backup/dbrestore.class.inc.php +++ b/datamodels/2.x/itop-backup/dbrestore.class.inc.php @@ -186,7 +186,7 @@ class DBRestore extends DBBackup $sConfigFile = APPROOT.'conf/'.$sEnvironment.'/config-itop.php'; @chmod($sConfigFile, 0770); // Allow overwriting the file rename($sDataDir.'/config-itop.php', $sConfigFile); - @chmod($sConfigFile, 0444); // Read-only + @chmod($sConfigFile, 0440); // Read-only try { diff --git a/datamodels/2.x/itop-config/config.php b/datamodels/2.x/itop-config/config.php index 92cd2889fc..bfff5096ec 100644 --- a/datamodels/2.x/itop-config/config.php +++ b/datamodels/2.x/itop-config/config.php @@ -176,7 +176,7 @@ try $oTempConfig = new Config($sTmpFile, true); $oTempConfig->WriteToFile($sConfigFile); @unlink($sTmpFile); - @chmod($sConfigFile, 0444); // Read-only + @chmod($sConfigFile, 0440); // Read-only if (DBPasswordInNewConfigIsOk($sConfig)) {