chiark / gitweb /
journal: use audit event names instead of numbers
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 14 Apr 2015 14:29:03 +0000 (10:29 -0400)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 07:05:26 +0000 (08:05 +0100)
commitbaa9b2f09da25d6ba820c43f9a55a6c9f2e48662
tree24dfbbb750f9ffe9e4bf5d339c94d57147344d05
parenta371371ecfa52a61938b598f86db55acd596cf1e
journal: use audit event names instead of numbers

<audit-1400> is replaced by AVC, etc.

A fallback mechanism is provided for unlisted event types.
Occasionally new types are added to the kernel, but not too often.

Add a simple "test", which simply prints the mapping.
src/journal/audit-type.c
src/journal/audit-type.h
src/journal/test-audit-type.c [new file with mode: 0644]