Skip to content

Commit bd96fa1

Browse files
committed
security fix: CP-17: Admin – Security – CSF
1 parent c32f758 commit bd96fa1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

firewall/firewallManager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,9 @@ def modifyPorts(self, data = None):
14851485
writeToFile.write(ports)
14861486
writeToFile.close()
14871487

1488+
command = 'chmod 600 %s' % (portsPath)
1489+
ProcessUtilities.executioner(command)
1490+
14881491
execPath = "sudo /usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/csf.py"
14891492
execPath = execPath + " modifyPorts --protocol " + protocol + " --ports " + portsPath
14901493
output = ProcessUtilities.outputExecutioner(execPath)

0 commit comments

Comments
 (0)