nxt_capability.h (1182:325b315e48c4) nxt_capability.h (1489:4a3ec07f4b19)
1/*
2 * Copyright (C) Igor Sysoev
3 * Copyright (C) NGINX, Inc.
4 */
5
6#ifndef _NXT_CAPABILITY_INCLUDED_
7#define _NXT_CAPABILITY_INCLUDED_
8
9typedef struct {
1/*
2 * Copyright (C) Igor Sysoev
3 * Copyright (C) NGINX, Inc.
4 */
5
6#ifndef _NXT_CAPABILITY_INCLUDED_
7#define _NXT_CAPABILITY_INCLUDED_
8
9typedef struct {
10 uint8_t setid; /* 1 bit */
10 uint8_t setid; /* 1 bit */
11 uint8_t chroot; /* 1 bit */
11} nxt_capabilities_t;
12
13
14NXT_EXPORT nxt_int_t nxt_capability_set(nxt_task_t *task,
15 nxt_capabilities_t *cap);
16
17#endif /* _NXT_CAPABILITY_INCLUDED_ */
12} nxt_capabilities_t;
13
14
15NXT_EXPORT nxt_int_t nxt_capability_set(nxt_task_t *task,
16 nxt_capabilities_t *cap);
17
18#endif /* _NXT_CAPABILITY_INCLUDED_ */