300
304
Set the current security context to a given user.
301
305
****************************************************************************/
303
void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, NT_USER_TOKEN *token)
307
void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, struct security_token *token)
305
309
struct sec_ctx *ctx_p = &sec_ctx_stack[sec_ctx_stack_ndx];
307
311
/* Set the security context */
309
DEBUG(3, ("setting sec ctx (%u, %u) - sec_ctx_stack_ndx = %d\n",
313
DEBUG(4, ("setting sec ctx (%u, %u) - sec_ctx_stack_ndx = %d\n",
310
314
(unsigned int)uid, (unsigned int)gid, sec_ctx_stack_ndx));
313
317
debug_unix_user_token(DBGC_CLASS, 5, uid, gid, ngroups, groups);
315
319
/* Change uid, gid and supplementary group list. */