CVS update: samba/source/libsmb
jra at samba.anu.edu.au
jra at samba.anu.edu.au
Tue Dec 22 13:53:05 EST 1998
Date: Tuesday December 22, 1998 @ 13:53
Author: jra
Update of /data/cvs/samba/source/libsmb
In directory samba:/tmp/cvs-serv14630/libsmb
Modified Files:
Tag: SAMBA_2_0
nmblib.c
Log Message:
Rather large (I'm afraid) tidyup of the setuid handling code.
All setuid code now resides in the one module lib/util_sec.c.
The interfaces this module exports are :
void gain_root_privilage(void); - Set real/eff/saved uid's to 0.
void gain_root_group_privilage(void); - Set real/eff/saved gid's to 0.
int set_effective_uid(uid_t uid); - Set eff uid *only* to given value.
int set_effective_gid(gid_t gid); - Set eff gid *only* to given value.
BOOL become_user_permanently(uid_t uid, gid_t gid); - Set real/eff/saved uid's and gid's
to uid and gid permanently - with no way back to root.
Most of the quota code now uses these calls (except for a few
special cases).
smbd/chgpasswd.c: Ensured the dochild exits in the fork()'d child.
libsmb/nmblib.c: Fix from Jasper for memory leak.
Jeremy.
More information about the samba-cvs
mailing list