aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-03-04 19:18:27 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-03-04 19:18:27 +0000
commit5a34a6a710394e6fc63c8c65b8fc6976ba4e78cf (patch)
tree54a62697910279dd906d0ef229ec6891e1384b13
parent97462f1870bef29dc13b05bf79dd64d711d6ef53 (diff)
downloadmsec-5a34a6a710394e6fc63c8c65b8fc6976ba4e78cf.tar
msec-5a34a6a710394e6fc63c8c65b8fc6976ba4e78cf.tar.gz
msec-5a34a6a710394e6fc63c8c65b8fc6976ba4e78cf.tar.bz2
msec-5a34a6a710394e6fc63c8c65b8fc6976ba4e78cf.tar.xz
msec-5a34a6a710394e6fc63c8c65b8fc6976ba4e78cf.zip
use 127.0.0.1 instead of localhost in hosts.deny
-rw-r--r--share/libmsec.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/libmsec.py b/share/libmsec.py
index eb5ddee..2a13c33 100644
--- a/share/libmsec.py
+++ b/share/libmsec.py
@@ -398,15 +398,15 @@ if \\fIarg\\fP = LOCAL and none if \\fIarg\\fP = NONE. To authorize the services
if arg == ALL:
_interactive and log(_('Authorizing all services'))
hostsdeny.remove_line_matching('^ALL:ALL:DENY', 1)
- hostsdeny.remove_line_matching('^ALL:ALL EXCEPT localhost:DENY', 1)
+ hostsdeny.remove_line_matching('^ALL:ALL EXCEPT 127\.0\.0\.1:DENY', 1)
elif arg == NONE:
_interactive and log(_('Disabling all services'))
- hostsdeny.remove_line_matching('^ALL:ALL EXCEPT localhost:DENY', 1)
+ hostsdeny.remove_line_matching('^ALL:ALL EXCEPT 127\.0\.0\.1:DENY', 1)
hostsdeny.replace_line_matching('^ALL:ALL:DENY$', 'ALL:ALL:DENY', 1)
elif arg == LOCAL:
_interactive and log(_('Disabling non local services'))
hostsdeny.remove_line_matching('^ALL:ALL:DENY', 1)
- hostsdeny.replace_line_matching('^ALL:ALL EXCEPT localhost:DENY$', 'ALL:ALL EXCEPT localhost:DENY', 1)
+ hostsdeny.replace_line_matching('^ALL:ALL EXCEPT 127\.0\.0\.1:DENY$', 'ALL:ALL EXCEPT 127.0.0.1:DENY', 1)
else:
error(_('authorize_services invalid argument: %s') % arg)