caps: define CAP_AUDIT_READ if not defined

This commit is contained in:
Robert Swiecki 2017-09-30 01:04:35 +02:00
parent a85f5505d2
commit 7820553cb9
2 changed files with 5 additions and 3 deletions

6
caps.c
View File

@ -36,6 +36,10 @@
x, #x \ x, #x \
} }
#if !defined(CAP_AUDIT_READ)
#define CAP_AUDIT_READ 37
#endif /* !defined(CAP_AUDIT_READ) */
/* *INDENT-OFF* */ /* *INDENT-OFF* */
static struct { static struct {
const int val; const int val;
@ -78,9 +82,7 @@ static struct {
VALSTR_STRUCT(CAP_SYSLOG), VALSTR_STRUCT(CAP_SYSLOG),
VALSTR_STRUCT(CAP_WAKE_ALARM), VALSTR_STRUCT(CAP_WAKE_ALARM),
VALSTR_STRUCT(CAP_BLOCK_SUSPEND), VALSTR_STRUCT(CAP_BLOCK_SUSPEND),
#if defined(CAP_AUDIT_READ)
VALSTR_STRUCT(CAP_AUDIT_READ), VALSTR_STRUCT(CAP_AUDIT_READ),
#endif /* defined(CAP_AUDIT_READ) */
}; };
/* *INDENT-ON* */ /* *INDENT-ON* */

View File

@ -26,7 +26,7 @@
#include "common.h" #include "common.h"
bool containSetupFD(struct nsjconf_t * nsjconf, int fd_in, int fd_out, int fd_err); bool containSetupFD(struct nsjconf_t *nsjconf, int fd_in, int fd_out, int fd_err);
bool containContain(struct nsjconf_t *nsjconf); bool containContain(struct nsjconf_t *nsjconf);
#endif /* NS_CONTAIN_H */ #endif /* NS_CONTAIN_H */