From 3944cb41cbef64ac507e87f258441000a46424d5 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Tue, 4 Sep 2018 13:28:37 -0700 Subject: /proc/PID/mounts is not tab-delimited PiperOrigin-RevId: 211513847 Change-Id: Ib484dd2d921c3e5d70d0e410cd973d3bff4f6b73 --- pkg/sentry/fs/proc/mounts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/sentry') diff --git a/pkg/sentry/fs/proc/mounts.go b/pkg/sentry/fs/proc/mounts.go index 2b8167c28..81dcc153a 100644 --- a/pkg/sentry/fs/proc/mounts.go +++ b/pkg/sentry/fs/proc/mounts.go @@ -173,7 +173,7 @@ func (mf *mountsFile) ReadSeqFileData(ctx context.Context, handle seqfile.SeqHan var buf bytes.Buffer forEachMountSource(mf.t, func(mountPath string, m *fs.MountSource) { - // Format (tab-separated): + // Format: // // // We use the filesystem name as the first field, since there @@ -191,7 +191,7 @@ func (mf *mountsFile) ReadSeqFileData(ctx context.Context, handle seqfile.SeqHan if m.Filesystem != nil { name = m.Filesystem.Name() } - fmt.Fprintf(&buf, "%s\t%s\t%s\t%s\t%d\t%d\n", "none", mountPath, name, opts, 0, 0) + fmt.Fprintf(&buf, "%s %s %s %s %d %d\n", "none", mountPath, name, opts, 0, 0) }) return []seqfile.SeqData{{Buf: buf.Bytes(), Handle: (*mountsFile)(nil)}}, 0 -- cgit v1.2.3