| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include_next <linux/audit.h> /* IWYU pragma: export */ |
| 5 |
|
| 6 |
#if HAVE_AUDIT |
| 7 |
# include <libaudit.h> /* IWYU pragma: export */ |
| 8 |
#endif |
| 9 |
|
| 10 |
#include <assert.h> |
| 11 |
|
| 12 |
/* We use static_assert() directly here instead of assert_cc() |
| 13 |
* because if we include macro.h in this header, the invocation |
| 14 |
* of generate-audit_type-list.sh becomes more complex. |
| 15 |
*/ |
| 16 |
|
| 17 |
#ifndef AUDIT_SERVICE_START |
| 18 |
# define AUDIT_SERVICE_START 1130 /* Service (daemon) start */ |
| 19 |
#else |
| 20 |
static_assert(AUDIT_SERVICE_START == 1130, ""); |
| 21 |
#endif |
| 22 |
|
| 23 |
#ifndef AUDIT_SERVICE_STOP |
| 24 |
# define AUDIT_SERVICE_STOP 1131 /* Service (daemon) stop */ |
| 25 |
#else |
| 26 |
static_assert(AUDIT_SERVICE_STOP == 1131, ""); |
| 27 |
#endif |
| 28 |
|
| 29 |
#ifndef MAX_AUDIT_MESSAGE_LENGTH |
| 30 |
# define MAX_AUDIT_MESSAGE_LENGTH 8970 |
| 31 |
#else |
| 32 |
static_assert(MAX_AUDIT_MESSAGE_LENGTH == 8970, ""); |
| 33 |
#endif |