summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2018-09-04 13:28:37 -0700
committerShentubot <shentubot@google.com>2018-09-04 13:29:49 -0700
commit3944cb41cbef64ac507e87f258441000a46424d5 (patch)
treef4c7a7f1e63853766c3035f40d45811c98ba0966 /pkg/sentry
parentab7174611c948c44ce509292063b95813183828d (diff)
/proc/PID/mounts is not tab-delimited
PiperOrigin-RevId: 211513847 Change-Id: Ib484dd2d921c3e5d70d0e410cd973d3bff4f6b73
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/fs/proc/mounts.go4
1 files changed, 2 insertions, 2 deletions
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:
// <special device or remote filesystem> <mount point> <filesystem type> <mount options> <needs dump> <fsck order>
//
// 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