qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <20160531164448.GE21628@redhat.com>]
  • * [Qemu-devel] [RFC Patch 0/3] Accept passed in socket 'fd' open from outside for unix socket
           [not found] <1464712247-11655-1-git-send-email-wexu@redhat.com>
           [not found] ` <574DC83B.9010802@redhat.com>
           [not found] ` <20160531164448.GE21628@redhat.com>
    @ 2016-06-22 15:24 ` Wei Xu
           [not found] ` <1464712247-11655-3-git-send-email-wexu@redhat.com>
      3 siblings, 0 replies; 23+ messages in thread
    From: Wei Xu @ 2016-06-22 15:24 UTC (permalink / raw)
      To: qemu-devel
    
    There has been comments on this patch, but i forgot adding this patch to 
    the list, just forward it again.
    
    Recently I'm working on a fd passing issue, selinux forbids qemu to
    create a unix socket for a chardev when managing VMs with libvirt,
    because qemu don't have sufficient permissions in this case, and
    proposal from libvirt team is opening the 'fd' in libvirt and merely
    passing it to qemu.
    
    I finished a RFC patch for Unix socket after a glance of the code,
    and not sure if this is right or there maybe other side-effects,
    please point me out.
    
    I tested it for both server and client mode 'PF_UNIX' socket with a VM
    running vhost-user.
    
    Old command line:
    -chardev socket,id=char0,path=/var/run/openvswitch/vhost-user1,server
    
    New command line:
    -chardev 
    socket,id=char0,path=/var/run/openvswitch/vhost-user1,server,sockfd=$n
    
    because unix socket is bundled with a path, so it should be kept even 
    with the
    'fd' is indicated, this looks odd, any comments?
    
    Wei Xu (3):
       chardev: add new socket fd parameter for unix socket
       chardev: save the passed in 'fd' parameter during parsing
       sockets: replace creating a new socket with the record one
    
      qapi-schema.json    |  3 ++-
      qemu-char.c         | 10 ++++++++++
      util/qemu-sockets.c | 25 +++++++++++++++++--------
      3 files changed, 29 insertions(+), 9 deletions(-)
    
    -- 
    2.7.1
    
    ^ permalink raw reply	[flat|nested] 23+ messages in thread
  • [parent not found: <1464712247-11655-3-git-send-email-wexu@redhat.com>]

  • end of thread, other threads:[~2016-06-22 15:26 UTC | newest]
    
    Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <1464712247-11655-1-git-send-email-wexu@redhat.com>
         [not found] ` <574DC83B.9010802@redhat.com>
    2016-06-01 15:44   ` [Qemu-devel] [RFC Patch 0/3] Accept passed in socket 'fd' open from outside for unix socket Wei Xu
         [not found] ` <20160531164448.GE21628@redhat.com>
    2016-06-01 16:16   ` Wei Xu
    2016-06-02  7:41     ` Michal Privoznik
    2016-06-02  8:29       ` Daniel P. Berrange
    2016-06-02 11:38         ` Michal Privoznik
    2016-06-02 18:07           ` Wei Xu
    2016-06-03  8:32             ` Daniel P. Berrange
    2016-06-08 10:07           ` Amnon Ilan
         [not found]             ` <20160608212738.GH3073@plex>
         [not found]               ` <f7tvb1jxsfq.fsf@redhat.com>
    2016-06-09  7:46                 ` Amnon Ilan
    2016-06-09  9:16                 ` Daniel P. Berrange
    2016-06-13  8:57                   ` Michal Privoznik
    2016-06-14  8:03                 ` Wei Xu
    2016-06-14  8:17                   ` Daniel P. Berrange
    2016-06-14 14:23                     ` Aaron Conole
    2016-06-14 17:50                       ` Wei Xu
    2016-06-14 12:47                   ` Amnon Ilan
    2016-06-14 14:21                   ` Aaron Conole
    2016-06-02 19:27         ` [Qemu-devel] Channel paths (was: Re: [RFC Patch 0/3] Accept passed in socket 'fd' open from outside for unix socket) Sascha Silbe
         [not found]         ` <201606021927.u52JB3YU031760@mx0a-001b2d01.pphosted.com>
    2016-06-03  8:34           ` Daniel P. Berrange
    2016-06-07 18:44             ` [Qemu-devel] Channel paths Sascha Silbe
    2016-06-22 15:24 ` [Qemu-devel] [RFC Patch 0/3] Accept passed in socket 'fd' open from outside for unix socket Wei Xu
         [not found] ` <1464712247-11655-3-git-send-email-wexu@redhat.com>
         [not found]   ` <574DC93E.4000700@redhat.com>
    2016-06-01 16:20     ` [Qemu-devel] [RFC Patch 2/3] chardev: save the passed in 'fd' parameter during parsing Wei Xu
    2016-06-22 15:26   ` Wei Xu
    

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