mirror of
https://github.com/google/nsjail.git
synced 2026-08-30 18:41:30 -07:00
caps: define CAP_AUDIT_READ if not defined
This commit is contained in:
6
caps.c
6
caps.c
@@ -36,6 +36,10 @@
|
||||
x, #x \
|
||||
}
|
||||
|
||||
#if !defined(CAP_AUDIT_READ)
|
||||
#define CAP_AUDIT_READ 37
|
||||
#endif /* !defined(CAP_AUDIT_READ) */
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
static struct {
|
||||
const int val;
|
||||
@@ -78,9 +82,7 @@ static struct {
|
||||
VALSTR_STRUCT(CAP_SYSLOG),
|
||||
VALSTR_STRUCT(CAP_WAKE_ALARM),
|
||||
VALSTR_STRUCT(CAP_BLOCK_SUSPEND),
|
||||
#if defined(CAP_AUDIT_READ)
|
||||
VALSTR_STRUCT(CAP_AUDIT_READ),
|
||||
#endif /* defined(CAP_AUDIT_READ) */
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#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);
|
||||
|
||||
#endif /* NS_CONTAIN_H */
|
||||
|
||||
Reference in New Issue
Block a user