1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-29 16:23:52 +03:00

Fixed up the user/group contexts when using authenticated pipes.

Added a become_root()/unbecome_root() (push/pop security context)
around the initgroups() call to ensure it would succeed. Hmmm - I
wonder if this call being done as non-root might explain any "group access"
bugs we've had in the past....
Jeremy.
This commit is contained in:
Jeremy Allison
-
parent e28d01b744
commit 06a65972e8
6 changed files with 25 additions and 7 deletions

View File

@@ -825,6 +825,9 @@ BOOL close_rpc_pipe_hnd(pipes_struct *p, connection_struct *conn)
DLIST_REMOVE(Pipes, p);
delete_nt_token(&p->pipe_user.nt_user_token);
safe_free(p->pipe_user.groups);
ZERO_STRUCTP(p);
free(p);