]> git.ipfire.org Git - thirdparty/libvirt.git/commit
audit: properly encode device path in cgroup audit
authorEric Blake <eblake@redhat.com>
Fri, 19 Apr 2013 17:30:44 +0000 (11:30 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 22 Apr 2013 20:51:03 +0000 (14:51 -0600)
commit0b0ecdfc6da1857537219ef54cc892d84903c295
tree1e64189f59768ce499915fc92294e1fd0f3cdd99
parent610aadd635d5b1a959d6d6b234839fbf30ad0b22
audit: properly encode device path in cgroup audit

https://bugzilla.redhat.com/show_bug.cgi?id=922186

Commit d04916fa introduced a regression in audit quality - even
though the code was computing the proper escaped name for a
path, it wasn't feeding that escaped name on to the audit message.
As a result, /var/log/audit/audit.log would mention a pair of
fields class=path path=/dev/hpet instead of the intended
class=path path="/dev/hpet", which in turn caused ausearch to
format the audit log with path=(null).

* src/conf/domain_audit.c (virDomainAuditCgroupPath): Use
constructed encoding.

Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit 31c6bf35b9d9de04158318658f4fbf6a9e54ff28)
src/conf/domain_audit.c