git format-patch - add protection wrapper around detail module
Alan Buxey
A.L.M.Buxey at lboro.ac.uk
Mon Aug 24 12:55:48 CEST 2009
hi,
attached patch means that the detail module doesnt
get poisoned as much by packets that it doesnt like
alan
-------------- next part --------------
>From eb8a08b0f0e056795edbb73cc10f7e8cac5694f1 Mon Sep 17 00:00:00 2001
From: root <root at pclinux-ccalmb.lut.ac.uk>
Date: Mon, 24 Aug 2009 11:52:54 +0100
Subject: [PATCH 2/2] Signed-off-by: root <root at pclinux-ccalmb.lut.ac.uk>
put a small unlang wrapper around the detail module to protect it from bad packets
---
raddb/sites-available/default | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/raddb/sites-available/default b/raddb/sites-available/default
index 184baa7..316def7 100644
--- a/raddb/sites-available/default
+++ b/raddb/sites-available/default
@@ -339,7 +339,15 @@ accounting {
# Create a 'detail'ed log of the packets.
# Note that accounting requests which are proxied
# are also logged in the detail file.
- detail
+
+ # protect the detail module from bad packets
+ if (Acct-Session-Time != 0 ) {
+ detail
+ }
+ else {
+ ok
+ }
+
# daily
# Update the wtmp file
--
1.6.2.5
More information about the Freeradius-Devel
mailing list