caps: define CAP_AUDIT_READ if not defined
This commit is contained in:
parent
a85f5505d2
commit
7820553cb9
6
caps.c
6
caps.c
@ -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* */
|
||||||
|
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user