convert-outgoingfw: Fix permissions of p2protocols configuration file.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Jan 2014 14:59:33 +0000 (15:59 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Jan 2014 14:59:33 +0000 (15:59 +0100)
World access can not be granted to this file. It must
be writable by nobody and can be read by all users.

config/firewall/convert-outgoingfw

index d2672cbe0bdc3fed67888481c3aebe910665ad05..4f8bcdc9ec061a0d3766f3b41669b67e3a2af75e 100755 (executable)
@@ -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';
 }