All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] fix: unix sockets created for virtio-serail has insufficient permissions
@ 2014-09-02  7:40 Chunyan Liu
  2014-09-02  7:40 ` [Qemu-devel] [PATCH 1/2] add 'umask' option to -chardev Chunyan Liu
  2014-09-02  7:40 ` [Qemu-devel] [PATCH 2/2] qemu: add umask(002) to virtio-serial chardev commandline Chunyan Liu
  0 siblings, 2 replies; 8+ messages in thread
From: Chunyan Liu @ 2014-09-02  7:40 UTC (permalink / raw)
  To: qemu-devel, libvir-list; +Cc: Chunyan Liu

https://sourceware.org/bugzilla/show_bug.cgi?id=13078#c11
https://bugzilla.novell.com/show_bug.cgi?id=888166

To use virtio-serial device, unix socket created for chardev with
default umask(022) has insufficient permissions.
e.g.:
-device virtio-serial \
-chardev socket,path=/tmp/foo,server,nowait,id=foo \
-device virtserialport,chardev=foo,name=org.fedoraproject.port.0

#ls -l /tmp/somefile.sock
srwxr-xr-x 1 qemu qemu 0 21. Jul 14:19 /tmp/somefile.sock

Other users in the same group (like real user, test engines, etc)
cannot write to this socket.

These patch series contains a qemu patch and a libvirt patch:
qemu patch: adds a new 'umask' option to -chardev, so that user can
    change the umask.
libvirt patch: pass 'umask=0x002' paramter to qemu command line
    for virtio-serial device

Chunyan Liu (2):
  qemu side: add 'umask' option to chardev
  libvirt side: qemu: add umask(002) to virtio-serial chardev commandline

-- 
1.8.4.5

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

end of thread, other threads:[~2014-09-02 10:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-02  7:40 [Qemu-devel] [PATCH 0/2] fix: unix sockets created for virtio-serail has insufficient permissions Chunyan Liu
2014-09-02  7:40 ` [Qemu-devel] [PATCH 1/2] add 'umask' option to -chardev Chunyan Liu
2014-09-02  8:54   ` Daniel P. Berrange
2014-09-02  9:08     ` Chun Yan Liu
2014-09-02  9:16       ` Daniel P. Berrange
2014-09-02 10:05         ` Chun Yan Liu
2014-09-02 10:53     ` Markus Armbruster
2014-09-02  7:40 ` [Qemu-devel] [PATCH 2/2] qemu: add umask(002) to virtio-serial chardev commandline Chunyan Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.