summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-18 08:29:27 +0200
committerChristian Breunig <christian@breunig.cc>2023-08-18 08:30:05 +0200
commit6c00ee0c848640fe5c0d85d0a71106a7215ac902 (patch)
tree2fe475cb7431cbc1d3242167211183c2fc1ee080
parent49f25c568c91750e06bb982ae0321d4448fbddbb (diff)
downloadvyos-1x-6c00ee0c848640fe5c0d85d0a71106a7215ac902.tar.gz
vyos-1x-6c00ee0c848640fe5c0d85d0a71106a7215ac902.zip
login: T5490: allow . (dot) in user home-directory path
his extends commit b9655365b ("login: T5490: add stricter validation for home-directory path") by adding a dot to the REGEX allow list. This was previously allowed and covered in out smoketests which failed.
-rw-r--r--interface-definitions/system-login.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/system-login.xml.in b/interface-definitions/system-login.xml.in
index 90f56cc9d..71db8b1d6 100644
--- a/interface-definitions/system-login.xml.in
+++ b/interface-definitions/system-login.xml.in
@@ -189,7 +189,7 @@
<description>Path to home directory</description>
</valueHelp>
<constraint>
- <regex>\/$|(\/[a-zA-Z_0-9-]+)+</regex>
+ <regex>\/$|(\/[a-zA-Z_0-9-.]+)+</regex>
</constraint>
</properties>
</leafNode>