File tree Expand file tree Collapse file tree 5 files changed +1
-24
lines changed Expand file tree Collapse file tree 5 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,6 @@ func (b *Boundary) ConfigureAfterCommandExecution(processPID int) error {
82
82
return b .jailer .ConfigureAfterCommandExecution (processPID )
83
83
}
84
84
85
- func (b * Boundary ) GetNetworkConfiguration () jail.NetworkConfiguration {
86
- return b .jailer .GetNetworkConfiguration ()
87
- }
88
-
89
85
func (b * Boundary ) Close () error {
90
86
// Stop proxy server
91
87
if b .proxyServer != nil {
Original file line number Diff line number Diff line change @@ -12,11 +12,6 @@ type Jailer interface {
12
12
Command (command []string ) * exec.Cmd
13
13
ConfigureAfterCommandExecution (processPID int ) error
14
14
Close () error
15
- GetNetworkConfiguration () NetworkConfiguration
16
- }
17
-
18
- type NetworkConfiguration struct {
19
- VethJailName string
20
15
}
21
16
22
17
type Config struct {
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ func (l *LinuxJail) ConfigureBeforeCommandExecution() error {
62
62
return nil
63
63
}
64
64
65
- // Command returns an exec.Cmd configured to run within the network namespace
65
+ // Command returns an exec.Cmd configured to run within the network namespace.
66
66
func (l * LinuxJail ) Command (command []string ) * exec.Cmd {
67
67
l .logger .Debug ("Creating command with namespace" , "namespace" , l .namespace )
68
68
@@ -99,12 +99,6 @@ func (l *LinuxJail) ConfigureAfterCommandExecution(pidInt int) error {
99
99
return nil
100
100
}
101
101
102
- func (l * LinuxJail ) GetNetworkConfiguration () NetworkConfiguration {
103
- return NetworkConfiguration {
104
- VethJailName : l .vethJailName ,
105
- }
106
- }
107
-
108
102
// Close removes the network namespace and iptables rules
109
103
func (l * LinuxJail ) Close () error {
110
104
l .logger .Debug ("Close called" )
Original file line number Diff line number Diff line change @@ -348,7 +348,3 @@ func (n *MacOSJail) cleanupTempFiles() {
348
348
func (u * MacOSJail ) ConfigureAfterCommandExecution (processPID int ) error {
349
349
return nil
350
350
}
351
-
352
- func (l * MacOSJail ) GetNetworkConfiguration () NetworkConfiguration {
353
- return NetworkConfiguration {}
354
- }
Original file line number Diff line number Diff line change @@ -64,7 +64,3 @@ func (u *Unprivileged) Close() error {
64
64
func (u * Unprivileged ) ConfigureAfterCommandExecution (processPID int ) error {
65
65
return nil
66
66
}
67
-
68
- func (l * Unprivileged ) GetNetworkConfiguration () NetworkConfiguration {
69
- return NetworkConfiguration {}
70
- }
You can’t perform that action at this time.
0 commit comments