We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ebcf45 commit fdfa8ceCopy full SHA for fdfa8ce
jail/linux.go
@@ -71,13 +71,17 @@ func (l *LinuxJail) Command(command []string) *exec.Cmd {
71
cmd.Stdout = os.Stdout
72
cmd.Stdin = os.Stdin
73
74
+ l.logger.Debug("os.Getuid()", "os.Getuid()", os.Getuid())
75
+
76
cmd.SysProcAttr = &syscall.SysProcAttr{
77
Cloneflags: syscall.CLONE_NEWUSER | syscall.CLONE_NEWNET,
78
UidMappings: []syscall.SysProcIDMap{
- {ContainerID: 0, HostID: os.Getuid(), Size: 1},
79
+ {ContainerID: 0, HostID: 0, Size: 1},
80
+ {ContainerID: 1000, HostID: 1000, Size: 1},
81
},
82
GidMappings: []syscall.SysProcIDMap{
- {ContainerID: 0, HostID: os.Getgid(), Size: 1},
83
84
85
86
}
87
0 commit comments