summaryrefslogtreecommitdiff
path: root/interface-definitions/container.xml.in
diff options
context:
space:
mode:
authorPiotr Maksymiuk <piotr.maksymiuk@movishell.pl>2024-02-01 22:59:54 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-02-02 09:05:55 +0000
commitf95738c0dd6263bad7973e664eb826b2507c6b1e (patch)
treeaf290eb914c24f4fb6e6a0ee09ee8ae53134dfa6 /interface-definitions/container.xml.in
parentcb702bbe61436286c2ac9400ee4e09c4b5ac397c (diff)
downloadvyos-1x-f95738c0dd6263bad7973e664eb826b2507c6b1e.tar.gz
vyos-1x-f95738c0dd6263bad7973e664eb826b2507c6b1e.zip
container: T5955: allow setting uid/gid
(cherry picked from commit 52e9707a43290f5f826766e2c42c5f0db3c9adec)
Diffstat (limited to 'interface-definitions/container.xml.in')
-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>