From 2c8647350a771a8e28db03ec82cda20b58db7323 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 5 May 2023 22:52:06 +0200 Subject: syslog: T2769: xml: provide common constraint for system usernames --- interface-definitions/include/constraint/login-username.xml.i | 3 +++ interface-definitions/system-login.xml.in | 2 +- interface-definitions/system-syslog.xml.in | 10 +++++----- 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 interface-definitions/include/constraint/login-username.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/constraint/login-username.xml.i b/interface-definitions/include/constraint/login-username.xml.i new file mode 100644 index 000000000..09a68b796 --- /dev/null +++ b/interface-definitions/include/constraint/login-username.xml.i @@ -0,0 +1,3 @@ + +[-_a-zA-Z0-9.]{1,100} + diff --git a/interface-definitions/system-login.xml.in b/interface-definitions/system-login.xml.in index 258913929..be4f53c3b 100644 --- a/interface-definitions/system-login.xml.in +++ b/interface-definitions/system-login.xml.in @@ -12,7 +12,7 @@ Local user account information - [-_a-zA-Z0-9.]{1,100} + #include Username contains illegal characters or\nexceeds 100 character limitation. diff --git a/interface-definitions/system-syslog.xml.in b/interface-definitions/system-syslog.xml.in index 90c3de5c1..fbba9ae9e 100644 --- a/interface-definitions/system-syslog.xml.in +++ b/interface-definitions/system-syslog.xml.in @@ -11,14 +11,14 @@ Logging to specific terminal of given user - - [a-z_][a-z0-9_-]{1,31}[$]? - - illegal characters in user - username + txt user login name + + #include + + illegal characters in user -- cgit v1.2.3