Compare commits
No commits in common. "427aaa7713c381c39b0ba2eb9959d45f09902104" and "9480a710ee1a89488bbe230daee25b4645067804" have entirely different histories.
427aaa7713
...
9480a710ee
@ -27,7 +27,6 @@ func Command(name string, arg ...string) (*exec.Cmd, error) {
|
||||
// registered in the command.
|
||||
func Apply(cmd *exec.Cmd) error {
|
||||
uid := os.Getuid()
|
||||
gid := os.Getgid()
|
||||
|
||||
// If the user is already root, there's no need for fakeroot
|
||||
if uid == 0 {
|
||||
@ -60,7 +59,7 @@ func Apply(cmd *exec.Cmd) error {
|
||||
|
||||
cmd.SysProcAttr.GidMappings = append(cmd.SysProcAttr.GidMappings, syscall.SysProcIDMap{
|
||||
ContainerID: 0,
|
||||
HostID: gid,
|
||||
HostID: uid,
|
||||
Size: 1,
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user