commit | 7d1740590b6550b2b8ab4901e4f0b704d9733383 | [log] [tgz] |
---|---|---|
author | Mark McLoughlin <[email protected]> | Wed Jul 22 09:11:39 2009 +0100 |
committer | Anthony Liguori <[email protected]> | Mon Jul 27 08:39:28 2009 -0500 |
tree | f193c3ae6b89a9ed5b0c3609a73319ba77bdeb60 | |
parent | 9977c8943a56b06908555ea6d1706142a3c9da4d [diff] |
Add SCM_RIGHTS support to unix socket character devices If a file descriptor is passed via a message with SCM_RIGHTS ancillary data on a unix socket, store the file descriptor for use in the chr_read() handler. Close the file descriptor if it was not used. The qemu_chr_get_msgfd() API provides access to the passed descriptor. Signed-off-by: Mark McLoughlin <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>