]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Call chmod() after mknod()
authorAndrea Bolognani <abologna@redhat.com>
Tue, 14 Feb 2017 14:46:23 +0000 (15:46 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 14 Feb 2017 18:23:05 +0000 (19:23 +0100)
commitee6ec7824d168cfa28bd67f99772aa0a51473bb3
tree84cc3855acd95618da1f974e641efdf0f208fc0f
parente04bd5b6fccbbcb664b9af545fb5c4da3ead4c28
qemu: Call chmod() after mknod()

mknod() is affected my the current umask, so we're not
guaranteed the newly-created device node will have the
right permissions.

Call chmod(), which is not affected by the current umask,
immediately afterwards to solve the issue.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1421036
src/qemu/qemu_domain.c