diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-02-05 02:04:06 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-09-26 23:34:44 +0200 |
commit | e30c52d292d5f03883a83d0a6bec71335ab99342 (patch) | |
tree | 60d49c63deb8fa6ed4677428e49e7eacf9dc3225 /pkg/sentry/socket/hostinet/stack.go | |
parent | ea43d9ffc0fd7bc1f42bada76006dbcf26f752af (diff) |
Implement dummy network interfacesfeature/dummy-iface
Diffstat (limited to 'pkg/sentry/socket/hostinet/stack.go')
-rw-r--r-- | pkg/sentry/socket/hostinet/stack.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/socket/hostinet/stack.go b/pkg/sentry/socket/hostinet/stack.go index b80d64c9a..85cc1b586 100644 --- a/pkg/sentry/socket/hostinet/stack.go +++ b/pkg/sentry/socket/hostinet/stack.go @@ -309,6 +309,11 @@ func (s *Stack) Interfaces() map[int32]inet.Interface { return interfaces } +// AddDummyInterface implements inet.Stack.AddDummyInterface. +func (s *Stack) AddDummyInterface(name string) (int32, error) { + return -1, linuxerr.EACCES +} + // RemoveInterface implements inet.Stack.RemoveInterface. func (*Stack) RemoveInterface(int32) error { return linuxerr.EACCES |