summaryrefslogtreecommitdiffstats
path: root/source/utils/smbrun.c
Commit message (Collapse)AuthorAgeFilesLines
* Rather large (I'm afraid) tidyup of the setuid handling code.Jeremy Allison1998-12-221-23/+5
| | | | | | | | | | | | | | | | | | | | 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.
* Samba 2.0 wasn't building on Linux-alpha - so I addedJeremy Allison1998-12-031-2/+2
| | | | | | | | | HAVE_SETRESGID and HAVE_SETRESGID_DECL defines, based on the HAVE_SETRESUID checks. I also updated the places that setresgid was being called based on HAVE_SETRESUID being defined and made sure *both* were defined before allowing the call. Jeremy.
* a few more things compile.Andrew Tridgell1998-08-091-0/+92
I'll do the rest tomorrow.