summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-10-22 18:49:34 +0000
committerjim-p <jimp@pfsense.org>2013-10-23 11:19:26 -0400
commit599d564ea40bd65a5c91f4f1f0a598ac6d44ef5c (patch)
tree514a19fd87074e26ac3f0704f7afa04c5fdaf859 /etc
parent37a4fc943a3b05a07043f63cf471b2c5223bc3fa (diff)
downloadpfsense-599d564ea40bd65a5c91f4f1f0a598ac6d44ef5c.zip
pfsense-599d564ea40bd65a5c91f4f1f0a598ac6d44ef5c.tar.gz
Prepend ipsec_ here as well for better protection
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/ipsec.attributes.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/ipsec.attributes.php b/etc/inc/ipsec.attributes.php
index e8507d7..2fee525 100644
--- a/etc/inc/ipsec.attributes.php
+++ b/etc/inc/ipsec.attributes.php
@@ -176,9 +176,9 @@ function parse_cisco_acl($attribs) {
$rules = parse_cisco_acl($attributes);
if (!empty($rules)) {
$pid = posix_getpid();
- @file_put_contents("/tmp/{$pid}{$common_name}.rules", $rules);
- mwexec("/sbin/pfctl -a \"ipsec/{$common_name}\" -f {$g['tmp_path']}/{$pid}{$common_name}.rules");
- @unlink("{$g['tmp_path']}/{$pid}{$common_name}.rules");
+ @file_put_contents("/tmp/ipsec_{$pid}{$common_name}.rules", $rules);
+ mwexec("/sbin/pfctl -a \"ipsec/{$common_name}\" -f {$g['tmp_path']}/ipsec_{$pid}{$common_name}.rules");
+ @unlink("{$g['tmp_path']}/ipsec_{$pid}{$common_name}.rules");
}
?>
OpenPOWER on IntegriCloud