Re: [PATCH 5/5] Make taint warnings also go into the domain logfile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/05/2011 05:51 AM, Daniel P. Berrange wrote:
> As well as taint warnings going to the main libvirt log,
> add taint warnings to the per-domain logfile
> 
>   Domain id=3 is tainted: high-privileges
>   Domain id=3 is tainted: disk-probing
>   Domain id=3 is tainted: shell-scripts
>   Domain id=3 is tainted: custom-monitor
> 
> * src/qemu/qemu_domain.c, src/qemu/qemu_domain.h: Enhance
>   qemuDomainTaint to also log to the domain logfile
> * src/qemu/qemu_driver.c: Pass -1 for logFD to taint methods to
>   auto-append to logfile
> * src/qemu/qemu_process.c: Pass open logFD at startup for taint
>   methods
> ---
>  src/qemu/qemu_domain.c  |   44 ++++++++++++++++++++++++++++++++------------
>  src/qemu/qemu_domain.h  |   12 ++++++++----
>  src/qemu/qemu_driver.c  |    6 +++---
>  src/qemu/qemu_process.c |    2 +-
>  4 files changed, 44 insertions(+), 20 deletions(-)

> @@ -909,7 +929,7 @@ int qemuDomainAppendLog(struct qemud_driver *driver,
>          virReportOOMError();
>          goto cleanup;
>      }
> -    if (safewrite(logFD, message, strlen(message)) < 0) {
> +    if (safewrite(fd, message, strlen(message)) < 0) {

Oops. Let's squash this hunk into 4, where it belongs.

ACK, modulo the reshuffling of one hunk.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]