From af4460ff3f18dff763e0a493ac71be37dd814435 Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Mon, 13 Jan 2014 10:51:45 -0500 Subject: Incorporate Ermal's comments -- use conf_mount_rw() only where needed. --- config/snort/snort_blocked.php | 3 --- 1 file changed, 3 deletions(-) (limited to 'config/snort/snort_blocked.php') diff --git a/config/snort/snort_blocked.php b/config/snort/snort_blocked.php index 95109660..8d106a90 100644 --- a/config/snort/snort_blocked.php +++ b/config/snort/snort_blocked.php @@ -63,7 +63,6 @@ if ($_POST['remove']) { /* TODO: build a file with block ip and disc */ if ($_POST['download']) { - conf_mount_rw(); $blocked_ips_array_save = ""; exec('/sbin/pfctl -t snort2c -T show', $blocked_ips_array_save); /* build the list */ @@ -105,8 +104,6 @@ if ($_POST['download']) $savemsg = gettext("An error occurred while creating archive"); } else $savemsg = gettext("No content on snort block list"); - - conf_mount_ro(); } if ($_POST['save']) -- cgit v1.2.3