summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/proc/net.go
diff options
context:
space:
mode:
authorZhaozhong Ni <nzz@google.com>2018-12-04 14:29:56 -0800
committerShentubot <shentubot@google.com>2018-12-04 14:30:42 -0800
commitadafc08d7cee594ea94abefbedf67ea315922550 (patch)
tree31433c2ab288f1b2c824718b82a97c0db8b96711 /pkg/sentry/fs/proc/net.go
parent5a6a1eb420620c3d41a9db4ddf7ac7b163310f09 (diff)
sentry: save / restore netstack procfs configuration.
PiperOrigin-RevId: 224047120 Change-Id: Ia6cb17fa978595cd73857b6178c4bdba401e185e
Diffstat (limited to 'pkg/sentry/fs/proc/net.go')
-rw-r--r--pkg/sentry/fs/proc/net.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/fs/proc/net.go b/pkg/sentry/fs/proc/net.go
index 45f2a1211..3ff60aa5b 100644
--- a/pkg/sentry/fs/proc/net.go
+++ b/pkg/sentry/fs/proc/net.go
@@ -54,6 +54,8 @@ func (p *proc) newNetDir(ctx context.Context, msrc *fs.MountSource) *fs.Inode {
}
// ifinet6 implements seqfile.SeqSource for /proc/net/if_inet6.
+//
+// +stateify savable
type ifinet6 struct {
s inet.Stack
}
@@ -108,6 +110,8 @@ func (n *ifinet6) ReadSeqFileData(ctx context.Context, h seqfile.SeqHandle) ([]s
}
// netDev implements seqfile.SeqSource for /proc/net/dev.
+//
+// +stateify savable
type netDev struct {
s inet.Stack
}