]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: audit: drop support for old libaudit
authorJán Tomko <jtomko@redhat.com>
Wed, 26 Feb 2020 17:51:19 +0000 (18:51 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 6 Mar 2020 16:42:20 +0000 (17:42 +0100)
Virtualization event types were added in 2.0.5:
https://github.com/linux-audit/audit-userspace/commit/3755e9ff

Even Ubuntu 14.04 (which we don't support) has 2.3.2.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/util/viraudit.c

index 20eb3f36216f5d08bf7b5af0789db599d99dc9a9..c8346aa81b382e638a40bfabfa39e02b0bd0bc0a 100644 (file)
 
 VIR_LOG_INIT("util.audit");
 
-/* Provide the macros in case the header file is old.
-   FIXME: should be removed. */
-#ifndef AUDIT_VIRT_CONTROL
-# define AUDIT_VIRT_CONTROL              2500 /* Start, Pause, Stop VM */
-#endif
-#ifndef AUDIT_VIRT_RESOURCE
-# define AUDIT_VIRT_RESOURCE             2501 /* Resource assignment */
-#endif
-#ifndef AUDIT_VIRT_MACHINE_ID
-# define AUDIT_VIRT_MACHINE_ID           2502 /* Binding of label to VM */
-#endif
-
 #define VIR_FROM_THIS VIR_FROM_AUDIT
 
 #if WITH_AUDIT