Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
PLAT-1214: Force rootless builds
Browse files Browse the repository at this point in the history
There is currently no ideal why to detect when we are root but running
rootless.
For now just force rootless builds.
  • Loading branch information
Michael Fraenkel committed Jul 1, 2021
1 parent 2d9b152 commit bd367f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/builder/embedded/bkimage/workeropt.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (c *Client) createWorkerOpt() (opt base.WorkerOpt, err error) {
}

// worker executor
unprivileged := system.GetParentNSeuid() != 0
unprivileged := true
c.logger.V(1).Info(fmt.Sprintf("Executor running unprivileged: %t", unprivileged))

exeOpt := runcexecutor.Opt{
Expand Down

0 comments on commit bd367f5

Please sign in to comment.