Commit 4e71260b authored by Mahmood Ali's avatar Mahmood Ali
Browse files

add note about AllocNodeExec permission

parent ed432053
Showing with 2 additions and 0 deletions
+2 -0
......@@ -114,6 +114,7 @@ func (a *Allocations) exec(conn io.ReadWriteCloser) {
handleStreamResultError(err, nil, encoder)
return
} else if aclObj != nil {
// FIXME: check for AllocNodeExec if task is raw_exec
exec := aclObj.AllowNsOp(req.QueryOptions.Namespace, acl.NamespaceCapabilityAllocExec)
if !exec {
handleStreamResultError(structs.ErrPermissionDenied, nil, encoder)
......
......@@ -212,6 +212,7 @@ func (a *ClientAllocations) exec(conn io.ReadWriteCloser) {
handleStreamResultError(err, nil, encoder)
return
} else if aclObj != nil {
// FIXME: check for AllocNodeExec if task is raw_exec
exec := aclObj.AllowNsOp(args.QueryOptions.Namespace, acl.NamespaceCapabilityAllocExec)
if !exec {
handleStreamResultError(structs.ErrPermissionDenied, nil, encoder)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment