aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-02-20 21:50:41 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-02-20 21:50:41 +0000
commit2db38c8e6bfe87d5cd8cfad916c5abea18a37c86 (patch)
treedceaada2081fa9cfc5c62ea7537df94f8b671a6e /share
parentd5ec6785ed351e8083cb394011bbc631cd46a438 (diff)
downloadmsec-2db38c8e6bfe87d5cd8cfad916c5abea18a37c86.tar
msec-2db38c8e6bfe87d5cd8cfad916c5abea18a37c86.tar.gz
msec-2db38c8e6bfe87d5cd8cfad916c5abea18a37c86.tar.bz2
msec-2db38c8e6bfe87d5cd8cfad916c5abea18a37c86.tar.xz
msec-2db38c8e6bfe87d5cd8cfad916c5abea18a37c86.zip
implement no password in level 0
X listens to tcp connections in level 3
Diffstat (limited to 'share')
-rwxr-xr-xshare/msec.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/msec.py b/share/msec.py
index 222ea69..49f201a 100755
--- a/share/msec.py
+++ b/share/msec.py
@@ -174,12 +174,17 @@ else:
# differences between level 0 and others
if level != 0:
enable_security_check(1)
+ enable_password(1)
if level < 3:
allow_x_connections(LOCAL, 1)
else:
- allow_x_connections(NONE, 0)
+ if level == 3:
+ allow_x_connections(NONE, 1)
+ else:
+ allow_x_connections(NONE, 0)
else:
enable_security_check(0)
+ enable_password(0)
allow_x_connections(ALL, 1)
# msec cron