diff options
author | Jeremy Allison <jra@samba.org> | 1998-12-22 02:53:06 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-12-22 02:53:06 +0000 |
commit | 80810371e6ee2ed33cb22a3629373131e92a7ab4 (patch) | |
tree | addea2df3e938f8c84c27481715c02570930f06a /source/libsmb | |
parent | a26d050828ede44d2beeb01edfa7bddd0c6deac0 (diff) | |
download | samba-80810371e6ee2ed33cb22a3629373131e92a7ab4.tar.gz samba-80810371e6ee2ed33cb22a3629373131e92a7ab4.tar.xz samba-80810371e6ee2ed33cb22a3629373131e92a7ab4.zip |
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.
Diffstat (limited to 'source/libsmb')
-rw-r--r-- | source/libsmb/nmblib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libsmb/nmblib.c b/source/libsmb/nmblib.c index e0b6056c85a..06ef935e167 100644 --- a/source/libsmb/nmblib.c +++ b/source/libsmb/nmblib.c @@ -673,9 +673,9 @@ struct packet_struct *read_packet(int fd,enum packet_type packet_type) break; } if (!ok) { - DEBUG(10,("parse_nmb: discarding packet id = %d\n", + DEBUG(10,("read_packet: discarding packet id = %d\n", packet->packet.nmb.header.name_trn_id)); - free(packet); + free_packet(packet); return(NULL); } |