summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-02-02 11:19:48 +0200
committerGitHub <noreply@github.com>2024-02-02 11:19:48 +0200
commit38a46e1bffd209ae3b91872d4dfb423aff87c10c (patch)
treed5622ace5af425c7b682b5bf8761d5887aa90e34 /interface-definitions
parentcb702bbe61436286c2ac9400ee4e09c4b5ac397c (diff)
parent33dfd49c385e83cfa0ca6ad7b8aa1000948001f0 (diff)
downloadvyos-1x-38a46e1bffd209ae3b91872d4dfb423aff87c10c.tar.gz
vyos-1x-38a46e1bffd209ae3b91872d4dfb423aff87c10c.zip
Merge pull request #2929 from vyos/mergify/bp/sagitta/pr-2927
container: T5955: add uid/gid settings (backport #2927)
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>