From 2c9725ca6503ab8440be063a4dce46eb876c1c87 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Tue, 5 Feb 2002 04:12:11 +0000 Subject: handle the extra arg for allow_x_connections. --- share/msec.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'share') diff --git a/share/msec.py b/share/msec.py index 53cae71..173506c 100755 --- a/share/msec.py +++ b/share/msec.py @@ -175,18 +175,16 @@ else: if level != 0: enable_security_check(1) if level < 3: - allow_x_connections(LOCAL) + allow_x_connections(LOCAL, 1) else: - allow_x_connections(NONE) + allow_x_connections(NONE, 0) else: enable_security_check(0) - allow_x_connections(ALL) + allow_x_connections(ALL, 1) # msec cron enable_msec_cron(1) -# TODO: need to be rewritten because we need to use fakelibmsec instead -# of calling directly the low level functions # 0 1 2 3 4 5 FILE_CHECKS = {'CHECK_SECURITY' : ('no', 'yes', 'yes', 'yes', 'yes', 'yes', ), 'CHECK_PERMS' : ('no', 'no', 'no', 'yes', 'yes', 'yes', ), @@ -212,6 +210,7 @@ for k in FILE_CHECKS.keys(): # load local customizations CONFIG='/etc/security/msec/level.local' if os.path.exists(CONFIG): + interactive and log(_('Reading local rules from %s') % CONFIG) try: eval_file(CONFIG) except: -- cgit v1.2.1