From ba5c073e44577853ab31d10dfc6da2b6050cf53e Mon Sep 17 00:00:00 2001 From: desaster Date: Mon, 7 Feb 2011 17:01:45 +0000 Subject: [PATCH] Include general configuration parameters in the cfg instance passed to DB loggers git-svn-id: https://kippo.googlecode.com/svn/trunk@200 951d7100-d841-11de-b865-b3884708a8e2 --- kippo/core/honeypot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kippo/core/honeypot.py b/kippo/core/honeypot.py index ee41687..d922792 100644 --- a/kippo/core/honeypot.py +++ b/kippo/core/honeypot.py @@ -534,7 +534,10 @@ class HoneyPotSSHFactory(factory.SSHFactory): lcfg = ConfigParser.ConfigParser() lcfg.add_section(dbengine) for i in cfg.options(x): - lcfg.set(dbengine, i, cfg.get(x,i)) + lcfg.set(dbengine, i, cfg.get(x, i)) + lcfg.add_section('honeypot') + for i in cfg.options('honeypot'): + lcfg.set('honeypot', i, cfg.get('honeypot', i)) print 'Loading dblog engine: %s' % (engine,) dblogger = __import__( 'kippo.dblog.%s' % (engine,),