summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-02 10:05:05 +0100
committerGitHub <noreply@github.com>2024-02-02 10:05:05 +0100
commit4b0a78b0d2e4e0ea813e93b0842ae3aed15d1a43 (patch)
tree04aa9fc0f5571f1b96b006211bbda02fac89ce96 /interface-definitions
parentf2de4378b5048fb4fc3a493aa2a214a320dd8d48 (diff)
parentfaa4c87d93c7808c6a4edd8eddd29049ec8ec3fa (diff)
downloadvyos-1x-4b0a78b0d2e4e0ea813e93b0842ae3aed15d1a43.tar.gz
vyos-1x-4b0a78b0d2e4e0ea813e93b0842ae3aed15d1a43.zip
Merge pull request #2927 from ishioni/T5955
container: T5955: add uid/gid settings
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/container.xml.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in
index b35ba8d1c..f0db8a6f2 100644
--- a/interface-definitions/container.xml.in
+++ b/interface-definitions/container.xml.in
@@ -316,6 +316,30 @@
</properties>
<defaultValue>on-failure</defaultValue>
</leafNode>
+ <leafNode name="uid">
+ <properties>
+ <help>User ID this container will run as</help>
+ <valueHelp>
+ <format>u32:0-65535</format>
+ <description>User ID this container will run as</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-65535"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="gid">
+ <properties>
+ <help>Group ID this container will run as</help>
+ <valueHelp>
+ <format>u32:0-65535</format>
+ <description>Group ID this container will run as</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-65535"/>
+ </constraint>
+ </properties>
+ </leafNode>
<tagNode name="volume">
<properties>
<help>Mount a volume into the container</help>