Skip to content

Commit

Permalink
Only grant privileged to plugins (#1646)
Browse files Browse the repository at this point in the history
Closes #1525

Co-authored-by: Anbraten <[email protected]>
  • Loading branch information
qwerty287 and anbraten authored Mar 19, 2023
1 parent 51168db commit 7ddc183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/frontend/yaml/compiler/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (c *Compiler) createProcess(name string, container *yaml.Container, section
}
}

if matchImage(container.Image, c.escalated...) {
if matchImage(container.Image, c.escalated...) && container.IsPlugin() {
privileged = true
}

Expand Down

0 comments on commit 7ddc183

Please sign in to comment.