summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/host/tty.go
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-06-17 11:32:23 -0700
committergVisor bot <gvisor-bot@google.com>2020-06-17 11:34:06 -0700
commite5d97cbcc1e64185b8fab1cf563c8754edd2e52e (patch)
treec621fe72067125d2b5c34bfd18cd52a428cd924b /pkg/sentry/fs/host/tty.go
parent50afec55c75dfd5bb88d100f77e17048dfbb3322 (diff)
Refactor host.canMap.
Simplify the canMap check. We do not have plans to allow mmap for anything beyond regular files, so we can just inline canMap() as a simple file mode check. Updates #1672. PiperOrigin-RevId: 316929654
Diffstat (limited to 'pkg/sentry/fs/host/tty.go')
0 files changed, 0 insertions, 0 deletions