qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kurz <groug@kaod.org>
To: Leo Gaspard <leo@gaspard.io>
Cc: qemu-devel@nongnu.org, Eric Blake <eblake@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 0/5] 9pfs: local: fix metadata of mapped-file security mode
Date: Tue, 9 May 2017 11:42:30 +0200	[thread overview]
Message-ID: <20170509114230.2592c51f@bahia> (raw)
In-Reply-To: <3d315a77-3e48-8441-de03-36b2cdda7a66@gaspard.io>

[-- Attachment #1: Type: text/plain, Size: 1749 bytes --]

On Mon, 8 May 2017 17:33:43 +0200
Leo Gaspard <leo@gaspard.io> wrote:

> Greg,
> 
> I just tested on 2.9.0 with the 5 patches applied, and it appears to
> work on my setup, thanks!
> 
> Just a side note: .virtfs_metadata_root is set as u=rwx on the host file
> system (the "ret = fchmod(map_fd, 0700);" line in patch 4 I guess),
> while u=rw would be more appropriate, I think.
> 

You're right. I'll change that.

> Thank you,
> Leo
> 
> 
> On 05/05/2017 04:36 PM, Greg Kurz wrote:
> > This series fixes two issues in the local backend when using the mapped-file
> > security mode:
> > - allow chmod and chown to succeed on the virtfs root (patch 4)
> > - completely hide the metadata files from the client (patch 5)
> > 
> > Patch 2 resolves '.' and '..' in paths, and patch 3 reworks the way we open
> > files accordingly. They could be squashed together in a single patch (this
> > was the case in earlier versions actually), but I decided to separate them
> > for easier review.
> > 
> > Léo,
> > 
> > I'd appreciate if you could test this series (especially patch 4) on your
> > setup.
> > 
> > Cheers.
> > 
> > --
> > Greg
> > 
> > ---
> > 
> > Greg Kurz (5):
> >       9pfs: check return value of v9fs_co_name_to_path()
> >       9pfs: local: resolve special directories in paths
> >       9pfs: local: simplify file opening
> >       9pfs: local: metadata file for the VirtFS root
> >       9pfs: local: forbid client access to metadata
> > 
> > 
> >  hw/9pfs/9p-local.c |  164 ++++++++++++++++++++++++++++++++++++++++------------
> >  hw/9pfs/9p-util.c  |   26 +++-----
> >  hw/9pfs/9p.c       |   36 ++++++++---
> >  3 files changed, 160 insertions(+), 66 deletions(-)
> >   
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

      reply	other threads:[~2017-05-09  9:42 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-05 14:36 [Qemu-devel] [PATCH 0/5] 9pfs: local: fix metadata of mapped-file security mode Greg Kurz
2017-05-05 14:37 ` [Qemu-devel] [PATCH 1/5] 9pfs: check return value of v9fs_co_name_to_path() Greg Kurz
2017-05-05 16:55   ` Eric Blake
2017-05-05 17:30     ` Greg Kurz
2017-05-05 14:37 ` [Qemu-devel] [PATCH 2/5] 9pfs: local: resolve special directories in paths Greg Kurz
2017-05-05 16:59   ` Eric Blake
2017-05-09  9:12     ` Greg Kurz
2017-05-18  8:41       ` Greg Kurz
2017-05-18 14:19         ` Eric Blake
2017-05-05 14:37 ` [Qemu-devel] [PATCH 3/5] 9pfs: local: simplify file opening Greg Kurz
2017-05-05 17:01   ` Eric Blake
2017-05-09  9:23     ` Greg Kurz
2017-05-18  8:42       ` Greg Kurz
2017-05-18 14:23       ` Eric Blake
2017-05-18 15:51         ` Greg Kurz
2017-05-05 14:37 ` [Qemu-devel] [PATCH 4/5] 9pfs: local: metadata file for the VirtFS root Greg Kurz
2017-05-05 17:11   ` Eric Blake
2017-05-09  9:31     ` Greg Kurz
2017-05-05 14:37 ` [Qemu-devel] [PATCH 5/5] 9pfs: local: forbid client access to metadata Greg Kurz
2017-05-05 17:13   ` Eric Blake
2017-05-09  9:39     ` Greg Kurz
2017-05-05 15:25 ` [Qemu-devel] [PATCH 0/5] 9pfs: local: fix metadata of mapped-file security mode no-reply
2017-05-08 15:33 ` Leo Gaspard
2017-05-09  9:42   ` Greg Kurz [this message]

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=20170509114230.2592c51f@bahia \
    --to=groug@kaod.org \
    --cc=eblake@redhat.com \
    --cc=leo@gaspard.io \
    --cc=qemu-devel@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).