From: Vivek Goyal <vgoyal@redhat.com>
To: Daniel Walsh <dwalsh@redhat.com>
Cc: virtio-fs@redhat.com
Subject: [Virtio-fs] Effect of nodev, noexec, nosuid mount options (Was: Re: One virtiofs daemon per exported dir requirement)
Date: Wed, 19 Feb 2020 09:06:28 -0500 [thread overview]
Message-ID: <20200219140628.GA19402@redhat.com> (raw)
In-Reply-To: <cfab5633-baa7-8dec-e5d3-3d660a8f8694@redhat.com>
On Tue, Feb 18, 2020 at 04:39:07PM -0500, Daniel Walsh wrote:
[..]
> >
> What about noexec? nodev? nosuid?
These flags will take affect on host (but not inside guest). These will
protect host from guest (in case guest process drops some file in shared dir,
escapes from guest somehow and take over host system).
nodev will make sure even if guest drops a device file in shared dir,
it can't open it (if running on host directly). If running inside guest,
it will fail as device will not be in guest to begin with. If matching
device in guest is available, guest process should be able to open it.
nosuid, also will take affect on host. So if guest process drops a setuid
root bindary and tries to execute it on host, setuid will not take affect.
But running same setuid binary inside guest will continue to work.
noexec also takes affect on host. If guest drops an executable in shared
directory and some process on host tries to execute it, it will fail. But
if guest tries to execute that file inside guest, it works.
IOW, all these flags work on host but have no affect inside guest, as of
now.
Thanks
Vivek
next prev parent reply other threads:[~2020-02-19 14:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-14 19:27 [Virtio-fs] One virtiofs daemon per exported dir requirement Vivek Goyal
2020-02-14 19:41 ` Dr. David Alan Gilbert
2020-02-18 13:38 ` Stefan Hajnoczi
2020-02-18 18:28 ` Daniel Walsh
2020-02-18 18:29 ` Daniel Walsh
2020-02-18 18:32 ` Daniel Walsh
2020-02-18 18:58 ` Dr. David Alan Gilbert
2020-02-18 21:39 ` Daniel Walsh
2020-02-19 14:06 ` Vivek Goyal [this message]
2020-02-21 15:38 ` [Virtio-fs] Effect of nodev, noexec, nosuid mount options (Was: Re: One virtiofs daemon per exported dir requirement) Daniel Walsh
2020-02-19 15:24 ` [Virtio-fs] One virtiofs daemon per exported dir requirement Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200219140628.GA19402@redhat.com \
--to=vgoyal@redhat.com \
--cc=dwalsh@redhat.com \
--cc=virtio-fs@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.