mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-26 21:10:36 +02:00
security fix: CP-05: Command Line Tools
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user