From dad110ce666edae42ac18c59a800bda503589f27 Mon Sep 17 00:00:00 2001 From: hagbard Date: Thu, 28 Nov 2019 08:53:54 -0800 Subject: syslog: T1828: implemented missing completion help and add input constraints syslog: Improved constraint for host/IP check --- interface-definitions/syslog.xml | 53 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 3 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/syslog.xml b/interface-definitions/syslog.xml index 0f9d600d9..d5ea4511e 100644 --- a/interface-definitions/syslog.xml +++ b/interface-definitions/syslog.xml @@ -27,6 +27,10 @@ auth authpriv cron daemon kern lpr mail mark news protocols security syslog user uucp local0 local1 local2 local3 local4 local5 local6 local7 all + + (auth|authpriv|cron|daemon|kern|lpr|mail|mark|news|protocols|security|syslog|user|uucp|local0|local1|local2|local3|local4|local5|local6|local7|all) + + Invalid facility type all All facilities excluding "mark" @@ -127,6 +131,10 @@ emerg alert crit err warning notice info debug all + + (emerg|alert|crit|err|warning|notice|info|debug|all) + + Invalid loglevel emerg Emergency messages @@ -173,10 +181,10 @@ Logging to a remote host - - [^ ]{1,63} + + (?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9]\.)+[a-zA-Z]{2,63}$) - illegal characters in user + Invalid host FQDN or IP address x.x.x.x or host.domain.tld Remote host name or IP address @@ -189,6 +197,10 @@ auth authpriv cron daemon kern lpr mail mark news protocols security syslog user uucp local0 local1 local2 local3 local4 local5 local6 local7 all + + (auth|authpriv|cron|daemon|kern|lpr|mail|mark|news|protocols|security|syslog|user|uucp|local0|local1|local2|local3|local4|local5|local6|local7|all) + + Invalid facility type all All facilities excluding "mark" @@ -294,6 +306,13 @@ tcp send log messages to remote syslog server over tcp + + udp tcp + + + (udp|tcp) + + invalid protocol name @@ -302,6 +321,10 @@ emerg alert crit err warning notice info debug all + + (emerg|alert|crit|err|warning|notice|info|debug|all) + + Invalid loglevel emerg Emergency messages @@ -380,6 +403,10 @@ auth authpriv cron daemon kern lpr mail mark news protocols security syslog user uucp local0 local1 local2 local3 local4 local5 local6 local7 all + + (auth|authpriv|cron|daemon|kern|lpr|mail|mark|news|protocols|security|syslog|user|uucp|local0|local1|local2|local3|local4|local5|local6|local7|all) + + Invalid facility type all All facilities excluding "mark" @@ -480,6 +507,10 @@ emerg alert crit err warning notice info debug all + + (emerg|alert|crit|err|warning|notice|info|debug|all) + + Invalid loglevel emerg Emergency messages @@ -583,6 +614,10 @@ auth authpriv cron daemon kern lpr mail mark news protocols security syslog user uucp local0 local1 local2 local3 local4 local5 local6 local7 all + + (auth|authpriv|cron|daemon|kern|lpr|mail|mark|news|protocols|security|syslog|user|uucp|local0|local1|local2|local3|local4|local5|local6|local7|all) + + Invalid facility type all All facilities excluding "mark" @@ -683,6 +718,10 @@ emerg alert crit err warning notice info debug all + + (emerg|alert|crit|err|warning|notice|info|debug|all) + + Invalid loglevel emerg Emergency messages @@ -736,6 +775,10 @@ auth authpriv cron daemon kern lpr mail mark news protocols security syslog user uucp local0 local1 local2 local3 local4 local5 local6 local7 all + + (auth|authpriv|cron|daemon|kern|lpr|mail|mark|news|protocols|security|syslog|user|uucp|local0|local1|local2|local3|local4|local5|local6|local7|all) + + Invalid facility type all All facilities excluding "mark" @@ -836,6 +879,10 @@ emerg alert crit err warning notice info debug all + + (emerg|alert|crit|err|warning|notice|info|debug|all) + + Invalid loglevel emerg Emergency messages -- cgit v1.2.3