Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
4e71260b
Commit
4e71260b
authored
6 years ago
by
Mahmood Ali
Browse files
Options
Download
Email Patches
Plain Diff
add note about AllocNodeExec permission
parent
ed432053
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/alloc_endpoint.go
+1
-0
client/alloc_endpoint.go
nomad/client_alloc_endpoint.go
+1
-0
nomad/client_alloc_endpoint.go
with
2 additions
and
0 deletions
+2
-0
client/alloc_endpoint.go
+
1
-
0
View file @
4e71260b
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
nomad/client_alloc_endpoint.go
+
1
-
0
View file @
4e71260b
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help