summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-16 11:51:12 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-16 11:51:20 -0400
commit4e7d16657607583500f9c05aa5b8b6fdfa859e1c (patch)
tree1d2341af91e2f118569f49c48535c0ca63bf6ba9 /usr
parent3bcd5555f66b579ae1027fa321c40abdd3e3506c (diff)
downloadpfsense-4e7d16657607583500f9c05aa5b8b6fdfa859e1c.zip
pfsense-4e7d16657607583500f9c05aa5b8b6fdfa859e1c.tar.gz
Using /tmp for packet captures is a bad idea, mmmkay?
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/diag_packet_capture.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php
index 51a4d9c..531dad1 100644
--- a/usr/local/www/diag_packet_capture.php
+++ b/usr/local/www/diag_packet_capture.php
@@ -39,7 +39,7 @@ $pgtitle = array("Diagnostics", "Packet Capture");
require_once("guiconfig.inc");
require_once("pfsense-utils.inc");
-$fp = "/tmp/";
+$fp = "/root/";
$fn = "packetcapture.cap";
$snaplen = 1500;//default packet length
$count = 100;//default number of packets to capture
@@ -52,6 +52,8 @@ if ($_POST) {
$packetlength = $_POST['snaplen'];
$port = $_POST['port'];
$detail = $_POST['detail'];
+
+ conf_mount_rw();
if ($_POST['dnsquery'])//if dns lookup is checked
{
@@ -270,4 +272,10 @@ include("head.inc"); ?>
</table>
</form>
</td></tr></table>
-<?php include("fend.inc"); ?>
+<?php
+
+conf_mount_ro();
+
+include("fend.inc");
+
+?>
OpenPOWER on IntegriCloud