mirror of
https://github.com/samba-team/samba.git
synced 2025-11-29 16:23:52 +03:00
r17293: After the results from the cluster tests in Germany,
fix the messaging code to call the efficient calls : save_re_uid() set_effective_uid(0); messaging_op restore_re_uid(); instead of using heavyweight become_root()/unbecome_root() pairs around all messaging code. Fixup the messaging code to ensure sec_init() is called (only once) so that non-root processes still work when sending messages. This is a lighter weight solution to become_root()/unbecome_root() (which swaps all the supplemental groups) and should be more efficient. I will migrate all server code over to using this (a similar technique should be used in the passdb backend where needed). Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
f462daf02c
commit
4ace291278
@@ -851,10 +851,8 @@ BOOL rename_share_filename(struct share_mode_lock *lck,
|
||||
(unsigned int)lck->dev, (double)lck->ino,
|
||||
lck->servicepath, lck->filename ));
|
||||
|
||||
become_root();
|
||||
message_send_pid(se->pid, MSG_SMB_FILE_RENAME,
|
||||
frm, msg_len, True);
|
||||
unbecome_root();
|
||||
}
|
||||
|
||||
return True;
|
||||
|
||||
Reference in New Issue
Block a user