2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2018-12-04 07:58:26 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <linux/capability.h>
|
|
|
|
|
|
|
|
/* 3a101b8de0d39403b2c7e5c23fd0b005668acf48 (3.16) */
|
|
|
|
#ifndef CAP_AUDIT_READ
|
2020-08-27 18:22:45 +02:00
|
|
|
# define CAP_AUDIT_READ 37
|
2018-12-04 07:58:26 +01:00
|
|
|
#endif
|
2020-06-24 12:43:22 +02:00
|
|
|
|
|
|
|
/* 980737282232b752bb14dab96d77665c15889c36 (5.8) */
|
|
|
|
#ifndef CAP_PERFMON
|
2020-08-27 18:22:45 +02:00
|
|
|
# define CAP_PERFMON 38
|
2020-06-24 12:43:22 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* a17b53c4a4b55ec322c132b6670743612229ee9c (5.8) */
|
|
|
|
#ifndef CAP_BPF
|
2020-08-27 18:22:45 +02:00
|
|
|
# define CAP_BPF 39
|
2020-06-24 12:43:22 +02:00
|
|
|
#endif
|
2020-08-26 15:37:21 +02:00
|
|
|
|
|
|
|
/* 124ea650d3072b005457faed69909221c2905a1f (5.9) */
|
|
|
|
#ifndef CAP_CHECKPOINT_RESTORE
|
2020-08-27 18:22:45 +02:00
|
|
|
# define CAP_CHECKPOINT_RESTORE 40
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define SYSTEMD_CAP_LAST_CAP CAP_CHECKPOINT_RESTORE
|
2020-08-26 15:37:21 +02:00
|
|
|
|
2020-08-27 18:22:45 +02:00
|
|
|
#ifdef CAP_LAST_CAP
|
|
|
|
# if CAP_LAST_CAP > SYSTEMD_CAP_LAST_CAP
|
2020-10-21 10:04:23 +02:00
|
|
|
# if BUILD_MODE == BUILD_MODE_DEVELOPER && defined(TEST_CAPABILITY_C)
|
2020-08-27 18:22:45 +02:00
|
|
|
# warning "The capability list here is outdated"
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# undef CAP_LAST_CAP
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
#ifndef CAP_LAST_CAP
|
|
|
|
# define CAP_LAST_CAP SYSTEMD_CAP_LAST_CAP
|
2020-08-26 15:37:21 +02:00
|
|
|
#endif
|