From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Alex Bradbury <asb@asbradbury.org>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] hw/9pfs: Add new security model mapped-file.
Date: Fri, 23 Dec 2011 11:07:41 +0530 [thread overview]
Message-ID: <87ty4rx2ze.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <CA+wH296uiVas7tmyU6TCxe-JxWD0DR0HAD5YqXRrN-g9CraJ=Q@mail.gmail.com>
On Thu, 22 Dec 2011 21:45:51 +0000, Alex Bradbury <asb@asbradbury.org> wrote:
> On 19 December 2011 13:50, Aneesh Kumar K.V
> <aneesh.kumar@linux.vnet.ibm.com> wrote:
> > From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
> >
> > This enable us to do passthrough equivalent security model on NFS directory.
> > NFS server mostly do root squashing and don't support xattr. Hence we cannot
> > use 'passthrough' or 'mapped' security model
> >
> > Also added "mapped-xattr" security to indicate earlier "mapped" security model
> > Older name is still supported.
>
> Out of interest, did you do any performance comparison with mapped-xattr?
>
No, I was mostly looking at making virtFS usable on an NFS setup
>
> > @@ -404,6 +578,10 @@ static int local_fstat(FsContext *fs_ctx, int fid_type,
> > &tmp_dev, sizeof(dev_t)) > 0) {
> > stbuf->st_rdev = tmp_dev;
> > }
> > +#if 0
> > + } else if (fs_ctx->export_flags & V9FS_SM_MAPPED_FILE) {
> > + /* FIXME!! how to implement that for MAPPED_FILE */
> > +#endif
>
> Lacking an implementation of fstat seems like a pretty major omission
> that isn't mentioned in the commit message.
>
If you look at where local_fstat get used currently, We do it only for
lock call, that too to check whether the file is present. We are not
using the stat value returned. So the patchset should be usable as it
is. What i am contemplating is should i add additional code in server
that fallback to path based stat if fs driver callback returned
EOPNOTSUPP error. May be i should do that in the next version.
-aneesh
prev parent reply other threads:[~2011-12-23 5:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-19 13:50 [Qemu-devel] [PATCH] hw/9pfs: Add new security model mapped-file Aneesh Kumar K.V
2011-12-22 21:45 ` Alex Bradbury
2011-12-23 5:37 ` Aneesh Kumar K.V [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=87ty4rx2ze.fsf@linux.vnet.ibm.com \
--to=aneesh.kumar@linux.vnet.ibm.com \
--cc=aliguori@us.ibm.com \
--cc=asb@asbradbury.org \
--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).