summaryrefslogtreecommitdiff
path: root/interface-definitions/containers.xml.in
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-10-15 18:18:39 +0000
committerViacheslav <v.gletenko@vyos.io>2021-10-15 18:18:39 +0000
commita633bdd2ed65971b2f137d5f985f8f3d85b9acfc (patch)
tree058f7c2743efe777796647dc03a8de45fcf17b5b /interface-definitions/containers.xml.in
parentd4c5e78fc94a375487a968083f88d96323b67301 (diff)
downloadvyos-1x-a633bdd2ed65971b2f137d5f985f8f3d85b9acfc.tar.gz
vyos-1x-a633bdd2ed65971b2f137d5f985f8f3d85b9acfc.zip
containers: T3676: Allow to set capabilities
Diffstat (limited to 'interface-definitions/containers.xml.in')
-rw-r--r--interface-definitions/containers.xml.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/interface-definitions/containers.xml.in b/interface-definitions/containers.xml.in
index fb8241d71..24d1870af 100644
--- a/interface-definitions/containers.xml.in
+++ b/interface-definitions/containers.xml.in
@@ -21,6 +21,30 @@
<valueless/>
</properties>
</leafNode>
+ <leafNode name="cap-add">
+ <properties>
+ <help>Add capabilities</help>
+ <completionHelp>
+ <list>net-admin setpcap sys-time</list>
+ </completionHelp>
+ <valueHelp>
+ <format>net-admin</format>
+ <description>Net-admin option</description>
+ </valueHelp>
+ <valueHelp>
+ <format>setpcap</format>
+ <description>Setpcap option</description>
+ </valueHelp>
+ <valueHelp>
+ <format>sys-time</format>
+ <description>Sys-time option</description>
+ </valueHelp>
+ <constraint>
+ <regex>^(net-admin|setpcap|sys-time)$</regex>
+ </constraint>
+ <multi/>
+ </properties>
+ </leafNode>
#include <include/generic-description.xml.i>
#include <include/generic-disable-node.xml.i>
<tagNode name="environment">