<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/hw/9pfs/Makefile.objs, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/hw/9pfs/Makefile.objs?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/hw/9pfs/Makefile.objs?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2020-08-21T10:30:33+00:00</updated>
<entry>
<title>meson: convert hw/9pfs, cleanup</title>
<updated>2020-08-21T10:30:33+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2019-08-17T08:04:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b2c00bce54cce0dbb8c7fd3dd397cfdaca4c28ef'/>
<id>urn:sha1:b2c00bce54cce0dbb8c7fd3dd397cfdaca4c28ef</id>
<content type='text'>
hw/Makefile.objs is gone so there is more code that can be removed.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>9pfs: remove unnecessary conditionals</title>
<updated>2019-03-07T20:45:53+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2019-02-20T16:49:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3fa749654e70aeed9576569f1d739139188586b2'/>
<id>urn:sha1:3fa749654e70aeed9576569f1d739139188586b2</id>
<content type='text'>
The VIRTIO_9P || VIRTFS &amp;&amp; XEN condition can be computed in hw/Makefile.objs,
removing an "if" from hw/9pfs/Makefile.objs.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>9p: remove support for the "handle" backend</title>
<updated>2018-12-12T13:18:10+00:00</updated>
<author>
<name>Greg Kurz</name>
</author>
<published>2018-12-12T13:18:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=93aee84f575d46699f49af3c96194012527e0b22'/>
<id>urn:sha1:93aee84f575d46699f49af3c96194012527e0b22</id>
<content type='text'>
The "handle" fsdev backend was deprecated in QEMU 2.12.0 with:

commit db3b3c7281ca82e2647e072a1f97db111313dd73
Author: Greg Kurz &lt;groug@kaod.org&gt;
Date:   Mon Jan 8 11:18:23 2018 +0100

    9pfs: deprecate handle backend

    This backend raise some concerns:

    - doesn't support symlinks
    - fails +100 tests in the PJD POSIX file system test suite [1]
    - requires the QEMU process to run with the CAP_DAC_READ_SEARCH
      capability, which isn't recommended for security reasons

    This backend should not be used and wil be removed. The 'local'
    backend is the recommended alternative.

    [1] https://www.tuxera.com/community/posix-test-suite/

    Signed-off-by: Greg Kurz &lt;groug@kaod.org&gt;
    Reviewed-by: Daniel P. Berrange &lt;berrange@redhat.com&gt;
    Reviewed-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;

It has passed the two release cooling period without any complaint.

Remove it now.

Signed-off-by: Greg Kurz &lt;groug@kaod.org&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>hw: make virtio devices configurable via default-configs/</title>
<updated>2018-06-01T13:14:31+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2018-05-22T19:48:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b5dfdb082fc350f3e68dfa61dc988d97cad28cfe'/>
<id>urn:sha1:b5dfdb082fc350f3e68dfa61dc988d97cad28cfe</id>
<content type='text'>
This is only half of the work, because the proxy devices (virtio-*-pci,
virtio-*-ccw, etc.) are still included unconditionally.  It is still a
move in the right direction.

Based-on: &lt;20180522194943.24871-1-pbonzini@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>9pfs: fix dependencies</title>
<updated>2017-08-30T16:23:25+00:00</updated>
<author>
<name>Cornelia Huck</name>
</author>
<published>2017-08-08T09:03:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=5f8c92e1d50d3629116497dd0a446e8cb28af7f8'/>
<id>urn:sha1:5f8c92e1d50d3629116497dd0a446e8cb28af7f8</id>
<content type='text'>
Nothing in fsdev/ or hw/9pfs/ depends on pci; it should rather depend
on CONFIG_VIRTFS and CONFIG_VIRTIO/CONFIG_XEN only.

Acked-by: Greg Kurz &lt;groug@kaod.org&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Acked-by: Christian Borntraeger &lt;borntraeger@de.ibm.com&gt;
Signed-off-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
</content>
</entry>
<entry>
<title>xen/9pfs: build and register Xen 9pfs backend</title>
<updated>2017-04-25T18:04:33+00:00</updated>
<author>
<name>Stefano Stabellini</name>
</author>
<published>2017-03-22T17:17:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e737b6d5c3d69bde91c8cc554a8ce6d20e14feaa'/>
<id>urn:sha1:e737b6d5c3d69bde91c8cc554a8ce6d20e14feaa</id>
<content type='text'>
Signed-off-by: Stefano Stabellini &lt;stefano@aporeto.com&gt;
Reviewed-by: Greg Kurz &lt;groug@kaod.org&gt;
CC: anthony.perard@citrix.com
CC: jgross@suse.com
CC: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
CC: Greg Kurz &lt;groug@kaod.org&gt;
</content>
</entry>
<entry>
<title>9pfs: introduce relative_openat_nofollow() helper</title>
<updated>2017-02-28T10:21:15+00:00</updated>
<author>
<name>Greg Kurz</name>
</author>
<published>2017-02-26T22:42:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6482a961636d66cc10928dde5d4d908206e5f65a'/>
<id>urn:sha1:6482a961636d66cc10928dde5d4d908206e5f65a</id>
<content type='text'>
When using the passthrough security mode, symbolic links created by the
guest are actual symbolic links on the host file system.

Since the resolution of symbolic links during path walk is supposed to
occur on the client side. The server should hence never receive any path
pointing to an actual symbolic link. This isn't guaranteed by the protocol
though, and malicious code in the guest can trick the server to issue
various syscalls on paths whose one or more elements are symbolic links.
In the case of the "local" backend using the "passthrough" or "none"
security modes, the guest can directly create symbolic links to arbitrary
locations on the host (as per spec). The "mapped-xattr" and "mapped-file"
security modes are also affected to a lesser extent as they require some
help from an external entity to create actual symbolic links on the host,
i.e. another guest using "passthrough" mode for example.

The current code hence relies on O_NOFOLLOW and "l*()" variants of system
calls. Unfortunately, this only applies to the rightmost path component.
A guest could maliciously replace any component in a trusted path with a
symbolic link. This could allow any guest to escape a virtfs shared folder.

This patch introduces a variant of the openat() syscall that successively
opens each path element with O_NOFOLLOW. When passing a file descriptor
pointing to a trusted directory, one is guaranteed to be returned a
file descriptor pointing to a path which is beneath the trusted directory.
This will be used by subsequent patches to implement symlink-safe path walk
for any access to the backend.

Symbolic links aren't the only threats actually: a malicious guest could
change a path element to point to other types of file with undesirable
effects:
- a named pipe or any other thing that would cause openat() to block
- a terminal device which would become QEMU's controlling terminal

These issues can be addressed with O_NONBLOCK and O_NOCTTY.

Two helpers are introduced: one to open intermediate path elements and one
to open the rightmost path element.

Suggested-by: Jann Horn &lt;jannh@google.com&gt;
Signed-off-by: Greg Kurz &lt;groug@kaod.org&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
(renamed openat_nofollow() to relative_openat_nofollow(),
 assert path is relative and doesn't contain '//',
 fixed side-effect in assert, Greg Kurz)
Signed-off-by: Greg Kurz &lt;groug@kaod.org&gt;
</content>
</entry>
<entry>
<title>9pfs: rename virtio-9p.c to 9p.c</title>
<updated>2016-01-08T10:02:13+00:00</updated>
<author>
<name>Wei Liu</name>
</author>
<published>2016-01-07T18:42:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=60ce86c7140d5ca33d5fd87ce821681165d06b2a'/>
<id>urn:sha1:60ce86c7140d5ca33d5fd87ce821681165d06b2a</id>
<content type='text'>
Now that file only contains generic code.

Signed-off-by: Wei Liu &lt;wei.liu2@citrix.com&gt;
Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>9pfs: rename virtio-9p-xattr{,-user}.{c,h} to 9p-xattr{,-user}.{c,h}</title>
<updated>2016-01-08T07:17:35+00:00</updated>
<author>
<name>Wei Liu</name>
</author>
<published>2015-11-18T18:31:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=267ae092e211f4f5ffe2340b7f869fcab3c5c027'/>
<id>urn:sha1:267ae092e211f4f5ffe2340b7f869fcab3c5c027</id>
<content type='text'>
These three files are not virtio specific. Rename them to generic
names.

Fix comments and header inclusion in various files.

Signed-off-by: Wei Liu &lt;wei.liu2@citrix.com&gt;
Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>9pfs: rename virtio-9p-synth.{c,h} to 9p-synth.{c,h}</title>
<updated>2016-01-08T07:10:55+00:00</updated>
<author>
<name>Wei Liu</name>
</author>
<published>2015-11-18T18:25:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=364031f17932814484657e5551ba12957d993d7e'/>
<id>urn:sha1:364031f17932814484657e5551ba12957d993d7e</id>
<content type='text'>
These two files are not virtio specific. Rename them to use generic
names.

Fix includes in various C files. Change define guards and comments
in header files.

Signed-off-by: Wei Liu &lt;wei.liu2@citrix.com&gt;
Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
</content>
</entry>
</feed>
