Skip to content

Commit ee9ad86

Browse files
remove unnecessary ambient caps
1 parent 95ecbd7 commit ee9ad86

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

jail/linux.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ func (l *LinuxJail) ConfigureBeforeCommandExecution() error {
6464
func (l *LinuxJail) Command(command []string) *exec.Cmd {
6565
l.logger.Debug("Creating command with namespace")
6666

67-
l.logger.Debug("DEBUG", "command[0 ]", command[0])
68-
l.logger.Debug("DEBUG", "command[1:]", command[1:])
69-
7067
cmd := exec.Command(command[0], command[1:]...)
7168
cmd.Env = l.commandEnv
7269
cmd.Env = append(cmd.Env, "CHILD=true")
@@ -88,7 +85,6 @@ func (l *LinuxJail) Command(command []string) *exec.Cmd {
8885
{ContainerID: 0, HostID: 0, Size: 1},
8986
{ContainerID: gid, HostID: gid, Size: 1},
9087
},
91-
AmbientCaps: []uintptr{unix.CAP_NET_ADMIN},
9288
}
9389

9490
return cmd

0 commit comments

Comments
 (0)