summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_process.h
diff options
context:
space:
mode:
authorTiago Natel <t.nateldemoura@f5.com>2019-12-06 13:28:05 +0000
committerTiago Natel <t.nateldemoura@f5.com>2019-12-06 13:28:05 +0000
commited2492a66afdf578d1e4f99dc098ab685607b3ba (patch)
tree188ac507ad6efdd02e8aae6adf1dbb5cd406fdbc /src/nxt_process.h
parentc6a11260e8ad5fa64cb025f72aab343aea9f1d63 (diff)
downloadunit-ed2492a66afdf578d1e4f99dc098ab685607b3ba.tar.gz
unit-ed2492a66afdf578d1e4f99dc098ab685607b3ba.tar.bz2
Moved credential-related code to nxt_credential.c.
This is required to avoid include cycles, as some nxt_clone_* functions depend on the credential structures, but nxt_process depends on clone structures.
Diffstat (limited to '')
-rw-r--r--src/nxt_process.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/nxt_process.h b/src/nxt_process.h
index 3f247ae1..457d2299 100644
--- a/src/nxt_process.h
+++ b/src/nxt_process.h
@@ -11,19 +11,9 @@
typedef pid_t nxt_pid_t;
-typedef uid_t nxt_uid_t;
-typedef gid_t nxt_gid_t;
typedef struct {
- const char *user;
- nxt_uid_t uid;
- nxt_gid_t base_gid;
- nxt_uint_t ngroups;
- nxt_gid_t *gids;
-} nxt_user_cred_t;
-
-typedef struct {
nxt_int_t flags;
nxt_conf_value_t *uidmap;
nxt_conf_value_t *gidmap;
@@ -38,7 +28,7 @@ struct nxt_process_init_s {
nxt_mp_t *mem_pool;
nxt_process_start_t start;
const char *name;
- nxt_user_cred_t *user_cred;
+ nxt_credential_t *user_cred;
const nxt_port_handlers_t *port_handlers;
const nxt_sig_event_t *signals;
@@ -153,9 +143,6 @@ NXT_EXPORT void nxt_process_title(nxt_task_t *task, const char *fmt, ...);
#define nxt_abort() \
(void) raise(SIGABRT)
-NXT_EXPORT nxt_int_t nxt_user_cred_get(nxt_task_t *task, nxt_mp_t *mp,
- nxt_user_cred_t *uc, const char *group);
-NXT_EXPORT nxt_int_t nxt_user_cred_set(nxt_task_t *task, nxt_user_cred_t *uc);
NXT_EXPORT extern nxt_pid_t nxt_pid;
NXT_EXPORT extern nxt_pid_t nxt_ppid;