convert-outgoingfw: Fix permissions of p2protocols configuration file.

World access can not be granted to this file. It must
be writable by nobody and can be read by all users.
This commit is contained in:
Michael Tremer
2014-01-10 15:59:33 +01:00
parent 2505d2763e
commit 7514fe47f6

View File

@@ -675,5 +675,5 @@ sub build_ovpn_grp
sub process_p2p
{
copy("/var/ipfire/outgoing/p2protocols","/var/ipfire/firewall/p2protocols");
chmod oct('0777'), '/var/ipfire/firewall/p2protocols';
chown 99, 99, '/var/ipfire/firewall/p2protocols';
}