security fix: CP-05: Command Line Tools

This commit is contained in:
Usman Nasir
2021-07-29 16:21:50 +05:00
parent aa41d3d707
commit 94def6ae92
2 changed files with 20 additions and 0 deletions

View File

@@ -657,6 +657,15 @@ class preFlightsChecks:
###
WriteToFile = open('/etc/fstab', 'a')
WriteToFile.write('proc /proc proc defaults,hidepid=2 0 0\n')
WriteToFile.close()
command = 'mount -o remount,rw,hidepid=2 /proc'
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
###
def install_unzip(self):
self.stdOut("Install unzip")
try:

View File

@@ -2073,6 +2073,17 @@ echo $oConfig->Save() ? 'Done' : 'Error';
command = 'chmod 600 /usr/local/CyberCP/public/rainloop.php'
Upgrade.executioner(command, 0)
###
WriteToFile = open('/etc/fstab', 'a')
WriteToFile.write('proc /proc proc defaults,hidepid=2 0 0\n')
WriteToFile.close()
command = 'mount -o remount,rw,hidepid=2 /proc'
Upgrade.executioner(command, 0)
###
Upgrade.stdOut("Permissions updated.")
except BaseException as msg: