summaryrefslogtreecommitdiff
path: root/interface-definitions/system-login.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-17 20:37:34 +0200
committerChristian Breunig <christian@breunig.cc>2023-08-17 20:37:34 +0200
commitb9655365bcc0518babdc32b094da488fada3f2f0 (patch)
treee86b2a2d05f8518ffa4d50b3bcdff8d759e7eff9 /interface-definitions/system-login.xml.in
parent3834e3e49ca58002e7c1391b0e7f9b845b844950 (diff)
downloadvyos-1x-b9655365bcc0518babdc32b094da488fada3f2f0.tar.gz
vyos-1x-b9655365bcc0518babdc32b094da488fada3f2f0.zip
login: T5490: add stricter validation for home-directory path
Diffstat (limited to 'interface-definitions/system-login.xml.in')
-rw-r--r--interface-definitions/system-login.xml.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/interface-definitions/system-login.xml.in b/interface-definitions/system-login.xml.in
index d772c7821..90f56cc9d 100644
--- a/interface-definitions/system-login.xml.in
+++ b/interface-definitions/system-login.xml.in
@@ -184,6 +184,13 @@
<leafNode name="home-directory">
<properties>
<help>Home directory</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Path to home directory</description>
+ </valueHelp>
+ <constraint>
+ <regex>\/$|(\/[a-zA-Z_0-9-]+)+</regex>
+ </constraint>
</properties>
</leafNode>
</children>