Deleted Added
1/*
2 * Copyright (C) Igor Sysoev
3 * Copyright (C) NGINX, Inc.
4 */
5
6#ifndef _NXT_CLONE_INCLUDED_
7#define _NXT_CLONE_INCLUDED_
8
9
10#if (NXT_HAVE_CLONE_NEWUSER)
11
12typedef struct {
13 nxt_int_t container;
14 nxt_int_t host;
15 nxt_int_t size;

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

31#endif
32
33} nxt_clone_t;
34
35
36pid_t nxt_clone(nxt_int_t flags);
37
38
39#if (NXT_HAVE_CLONE_NEWUSER)
40
41#define NXT_CLONE_USER(flags) \
42 ((flags & CLONE_NEWUSER) == CLONE_NEWUSER)
43
44NXT_EXPORT nxt_int_t nxt_clone_credential_map(nxt_task_t *task, pid_t pid,
45 nxt_credential_t *creds, nxt_clone_t *clone);
46NXT_EXPORT nxt_int_t nxt_clone_vldt_credential_uidmap(nxt_task_t *task,
47 nxt_clone_credential_map_t *map, nxt_credential_t *creds);
48NXT_EXPORT nxt_int_t nxt_clone_vldt_credential_gidmap(nxt_task_t *task,
49 nxt_clone_credential_map_t *map, nxt_credential_t *creds);
50
51#endif
52
53#endif /* _NXT_CLONE_INCLUDED_ */