Deleted Added
1/*
2 * Copyright (C) Igor Sysoev
3 * Copyright (C) NGINX, Inc.
4 */
5
6#ifndef _NXT_CLONE_H_INCLUDED_
7#define _NXT_CLONE_H_INCLUDED_
8

--- 28 unchanged lines hidden (view full) ---

37
38
39#define nxt_is_clone_flag_set(flags, test) \
40 ((flags & CLONE_##test) == CLONE_##test)
41
42
43#if (NXT_HAVE_CLONE_NEWUSER)
44
45#define NXT_CLONE_MNT(flags) \
46 ((flags & CLONE_NEWNS) == CLONE_NEWNS)
47
48NXT_EXPORT nxt_int_t nxt_clone_credential_map(nxt_task_t *task, pid_t pid,
49 nxt_credential_t *creds, nxt_clone_t *clone);
50NXT_EXPORT nxt_int_t nxt_clone_vldt_credential_uidmap(nxt_task_t *task,
51 nxt_clone_credential_map_t *map, nxt_credential_t *creds);
52NXT_EXPORT nxt_int_t nxt_clone_vldt_credential_gidmap(nxt_task_t *task,
53 nxt_clone_credential_map_t *map, nxt_credential_t *creds);
54
55#endif
56
57
58#endif /* _NXT_CLONE_H_INCLUDED_ */