[pve-devel] [PATCH pve-manager 1/2] Use protected mode to be able to execute root system commands

Emmanuel Kasper e.kasper at proxmox.com
Thu Nov 5 17:20:15 CET 2015


Signed-off-by: Emmanuel Kasper <e.kasper at proxmox.com>
---
 PVE/API2/Nodes.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 70f4bbb..9b7bb9f 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -1137,6 +1137,7 @@ __PACKAGE__->register_method({
     permissions => {
 	check => ['perm', '/nodes/{node}', [ 'Sys.Audit' ]],
     },
+    protected => 1,
     description => "Gather various systems information about a node",
     proxyto => 'node',
     parameters => {
-- 
2.1.4





More information about the pve-devel mailing list