summaryrefslogtreecommitdiff
path: root/gnu/services/security.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/services/security.scm')
-rw-r--r--gnu/services/security.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/services/security.scm b/gnu/services/security.scm
index 1e0360c07f..fd5bf19730 100644
--- a/gnu/services/security.scm
+++ b/gnu/services/security.scm
@@ -127,7 +127,7 @@
(string-append "bantime." (substring name 9))))
((string-contains name "-")
(fail2ban-jail-configuration-serialize-field-name
- (string-filter (lambda (c) (equal? c #\-)) name)))
+ (string-filter (lambda (c) (not (equal? c #\-))) name)))
(else name)))
(define (fail2ban-jail-configuration-serialize-string field-name value)
@@ -194,13 +194,14 @@
(define-configuration fail2ban-jail-configuration
(name
string
- "Required name of this jail configuration.")
+ "Required name of this jail configuration."
+ empty-serializer)
(enabled?
(boolean #t)
"Whether this jail is enabled.")
(backend
maybe-symbol
- "Backend to use to detect changes in the @code{ogpath}. The default is
+ "Backend to use to detect changes in the @code{log-path}. The default is
'auto. To consult the defaults of the jail configuration, refer to the
@file{/etc/fail2ban/jail.conf} file of the @code{fail2ban} package."
fail2ban-jail-configuration-serialize-backend)