summaryrefslogtreecommitdiffstats
path: root/etc/inc/ipsec.attributes.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-10-22 18:49:34 +0000
committerErmal <eri@pfsense.org>2013-10-22 18:49:34 +0000
commit10d9290f5bb509cc2a29cefbdc02187d4e9a6bd0 (patch)
treeebb4c6c8ee369930b495c41a44bf2dc938ea0fe0 /etc/inc/ipsec.attributes.php
parent7b95ffdd72d2abb515c9cda22570c4ec1a09f081 (diff)
downloadpfsense-10d9290f5bb509cc2a29cefbdc02187d4e9a6bd0.zip
pfsense-10d9290f5bb509cc2a29cefbdc02187d4e9a6bd0.tar.gz
Prepend ipsec_ here as well for better protection
Diffstat (limited to 'etc/inc/ipsec.attributes.php')
-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