aboutsummaryrefslogtreecommitdiffstats
path: root/share/msec.py
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-02-05 04:12:11 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-02-05 04:12:11 +0000
commit2c9725ca6503ab8440be063a4dce46eb876c1c87 (patch)
treea3bb8a1a62fb56f48c2c3da652d7e27b73bc4ace /share/msec.py
parentce8c9ad52be92c07710cd426ea69f8b2d926bf28 (diff)
downloadmsec-2c9725ca6503ab8440be063a4dce46eb876c1c87.tar
msec-2c9725ca6503ab8440be063a4dce46eb876c1c87.tar.gz
msec-2c9725ca6503ab8440be063a4dce46eb876c1c87.tar.bz2
msec-2c9725ca6503ab8440be063a4dce46eb876c1c87.tar.xz
msec-2c9725ca6503ab8440be063a4dce46eb876c1c87.zip
handle the extra arg for allow_x_connections.
Diffstat (limited to 'share/msec.py')
-rwxr-xr-xshare/msec.py9
1 files changed, 4 insertions, 5 deletions
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: