diff options
author | Marc Hartmayer <mhartmay@linux.vnet.ibm.com> | 2017-12-13 11:56:13 +0100 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2017-12-13 13:42:16 +0100 |
commit | 4199c2f221cf581f7a4258320a8eecd11a44babf (patch) | |
tree | ae430665c4ba2c2887bfb7741065c39c98ef14f4 /src/util/viraudit.h | |
parent | fbe32b78e0db84be0be31e480908f70928145eda (diff) | |
download | libvirt-4199c2f221cf581f7a4258320a8eecd11a44babf.tar.gz |
audit: Log only an info message if audit_level < 2 and audit is not supported
Replace the error message during startup of libvirtd with an info
message if audit_level < 2 and audit is not supported by the
kernel. Audit is not supported by the current kernel if the kernel
does not have audit compiled in or if audit is disabled (e.g. by the
kernel cmdline).
Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'src/util/viraudit.h')
-rw-r--r-- | src/util/viraudit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/viraudit.h b/src/util/viraudit.h index ed3d66ab5d..478dc8408f 100644 --- a/src/util/viraudit.h +++ b/src/util/viraudit.h @@ -32,7 +32,7 @@ typedef enum { VIR_AUDIT_RECORD_RESOURCE, } virAuditRecordType; -int virAuditOpen(void); +int virAuditOpen(unsigned int audit_level); void virAuditLog(bool enabled); |