qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/6] virtio-9p:Introducing security model for VirtFS
@ 2010-05-10 20:23 Venkateswararao Jujjuri (JV)
  2010-05-10 20:23 ` [Qemu-devel] [PATCH 1/6] virtio-9p: Introduces an option to specify the security model Venkateswararao Jujjuri (JV)
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Venkateswararao Jujjuri (JV) @ 2010-05-10 20:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori, Venkateswararao Jujjuri

This patch series introduces the security model for VirtFS.

Brief description of this patch series.

It introduces two type of security models for VirtFS.
They are: mapped and passthrough.

The following is common to both security models.

* Client's VFS determines/enforces the access control.
  Largely server should never return EACCESS.

* Client sends gid/mode-bit information as part of creation only.


Security model: mapped
----------------------

VirtFS server(QEMU) intercepts and maps all the file object create requests.
Files on the fileserver will be created with QEMU's user credentials and the
client-user's credentials are stored in extended attributes.
During getattr() server extracts the client-user's credentials from extended
attributes and sends to the client.

Given that only the user space extended attributes are available to regular
files, special files are created as regular files on the fileserver and the
appropriate mode bits are stored in xattrs and will be extracted during
getattr.

If the extended attributes are missing, server sends back the filesystem
stat() unaltered. This provision will make the files created on the
fileserver usable to client.

Points to be considered

* Filesystem will be VirtFS'ized. Meaning, other filesystems may not
  understand the credentials of the files created under this model.

* Regular utilities like 'df' may not report required results in this model.
  Need for special reporting utilities which can understand this security model.


Security model : passthrough
----------------------------

In this security model, VirtFS server passes down all requests to the
underlying filesystem. File system objects on the fileserver will be created
with client-user's credentials. This is done by setting setuid()/setgid()
during creation or ch* after file creation. At the end of create protocol
request, files on the fileserver will be owned by cleint-user's uid/gid.

Points to be considered

   * Fileserver should always run as 'root'.
   * Root squashing may be needed. Will be for future work.
   * Potential for user credential clash between guest's user space IDs and
     host's user space IDs.

It also adds security model attribute to -fsdev device and to -virtfs shortcut.

Usage model:
-fsdev local,id=jvrao,path=/tmp/,security_model=mapped
-virtfs local,path=/tmp/,security_model=passthrough,mnt_tag=v_tmp.

--
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-05-10 20:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-10 20:23 [Qemu-devel] [PATCH 0/6] virtio-9p:Introducing security model for VirtFS Venkateswararao Jujjuri (JV)
2010-05-10 20:23 ` [Qemu-devel] [PATCH 1/6] virtio-9p: Introduces an option to specify the security model Venkateswararao Jujjuri (JV)
2010-05-10 20:24 ` [Qemu-devel] [PATCH 2/6] virtio-9p: Rearrange fileop structures Venkateswararao Jujjuri (JV)
2010-05-10 20:24 ` [Qemu-devel] [PATCH 3/6] virtio-9p: modify create/open2 and mkdir for new security model Venkateswararao Jujjuri (JV)
2010-05-10 20:24 ` [Qemu-devel] [PATCH 4/6] virtio-9p: Implement Security model for mknod related files Venkateswararao Jujjuri (JV)
2010-05-10 20:24 ` [Qemu-devel] [PATCH 5/6] virtio-9p: Implemented security model for symlink and link Venkateswararao Jujjuri (JV)
2010-05-10 20:24 ` [Qemu-devel] [PATCH 6/6] virtio-9p: Implemented Security model for lstat and fstat Venkateswararao Jujjuri (JV)

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).