diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-10-01 17:18:31 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-10-01 17:18:31 +0000 |
commit | 43d38ada21ea773ebfa5e9e6541b53e85250309e (patch) | |
tree | 308de1fc7bbef3214be358a1762c932758b1f0ae /gnu/usr.sbin/sendmail/libsmutil | |
parent | 8dee1861c085bad9fb091c6ac52dca6100e5899c (diff) |
Update to sendmail 8.12.1.
A potential security problem has been uncovered in 8.12.0 which might
be exploited locally by malicious users to gain access to the client
mail queue. However, as long as the MTA accepts local connections,
the possible consequences of this potential local exploit are small.
Notice: some operating systems don't provide a way to completely drop
privileges from a set-group-ID program. In that case sendmail refuses
to run if unsafe options are given.
Diffstat (limited to 'gnu/usr.sbin/sendmail/libsmutil')
-rw-r--r-- | gnu/usr.sbin/sendmail/libsmutil/cf.c | 2 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/libsmutil/debug.c | 2 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/libsmutil/err.c | 2 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/libsmutil/lockfile.c | 4 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/libsmutil/safefile.c | 17 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/libsmutil/snprintf.c | 4 |
6 files changed, 16 insertions, 15 deletions
diff --git a/gnu/usr.sbin/sendmail/libsmutil/cf.c b/gnu/usr.sbin/sendmail/libsmutil/cf.c index 6d4f000ba65..337ac80e8ae 100644 --- a/gnu/usr.sbin/sendmail/libsmutil/cf.c +++ b/gnu/usr.sbin/sendmail/libsmutil/cf.c @@ -9,7 +9,7 @@ */ #include <sendmail.h> -SM_RCSID("@(#)$Sendmail: cf.c,v 8.14 2001/05/02 00:42:46 ca Exp $") +SM_RCSID("@(#)$Sendmail: cf.c,v 8.16 2001/09/11 04:04:55 gshapiro Exp $") #include <sendmail/pathnames.h> /* diff --git a/gnu/usr.sbin/sendmail/libsmutil/debug.c b/gnu/usr.sbin/sendmail/libsmutil/debug.c index b043c0e1715..012a1e683fe 100644 --- a/gnu/usr.sbin/sendmail/libsmutil/debug.c +++ b/gnu/usr.sbin/sendmail/libsmutil/debug.c @@ -10,6 +10,6 @@ #include <sendmail.h> -SM_RCSID("@(#)$Sendmail: debug.c,v 8.7 2001/06/27 21:46:54 gshapiro Exp $") +SM_RCSID("@(#)$Sendmail: debug.c,v 8.9 2001/09/11 04:04:55 gshapiro Exp $") unsigned char tTdvect[100]; /* trace vector */ diff --git a/gnu/usr.sbin/sendmail/libsmutil/err.c b/gnu/usr.sbin/sendmail/libsmutil/err.c index 6ae078715dc..449bccdea72 100644 --- a/gnu/usr.sbin/sendmail/libsmutil/err.c +++ b/gnu/usr.sbin/sendmail/libsmutil/err.c @@ -10,7 +10,7 @@ #include <sendmail.h> -SM_RCSID("@(#)$Sendmail: err.c,v 8.3 2001/01/24 01:27:30 gshapiro Exp $") +SM_RCSID("@(#)$Sendmail: err.c,v 8.5 2001/09/11 04:04:55 gshapiro Exp $") #include <ctype.h> diff --git a/gnu/usr.sbin/sendmail/libsmutil/lockfile.c b/gnu/usr.sbin/sendmail/libsmutil/lockfile.c index f72d0fa284b..9b6eb4df596 100644 --- a/gnu/usr.sbin/sendmail/libsmutil/lockfile.c +++ b/gnu/usr.sbin/sendmail/libsmutil/lockfile.c @@ -13,10 +13,10 @@ #include <sendmail.h> -SM_RCSID("@(#)$Sendmail: lockfile.c,v 8.16 2001/01/24 00:34:54 ca Exp $") +SM_RCSID("@(#)$Sendmail: lockfile.c,v 8.19 2001/09/11 04:04:55 gshapiro Exp $") -/* +/* ** LOCKFILE -- lock a file using flock or (shudder) fcntl locking ** ** Parameters: diff --git a/gnu/usr.sbin/sendmail/libsmutil/safefile.c b/gnu/usr.sbin/sendmail/libsmutil/safefile.c index 9a046038250..fbddc2de527 100644 --- a/gnu/usr.sbin/sendmail/libsmutil/safefile.c +++ b/gnu/usr.sbin/sendmail/libsmutil/safefile.c @@ -15,10 +15,10 @@ #include <sm/io.h> #include <sm/errstring.h> -SM_RCSID("@(#)$Sendmail: safefile.c,v 8.114 2001/09/08 01:21:03 gshapiro Exp $") +SM_RCSID("@(#)$Sendmail: safefile.c,v 8.118 2001/09/18 21:45:27 gshapiro Exp $") -/* +/* ** SAFEFILE -- return 0 if a file exists and is safe for a user. ** ** Parameters: @@ -365,7 +365,7 @@ safefile(fn, uid, gid, user, flags, mode, st) sm_dprintf("\tEACCES\n"); return EACCES; } -/* +/* ** SAFEDIRPATH -- check to make sure a path to a directory is safe ** ** Safe means not writable and owned by the right folks. @@ -654,7 +654,7 @@ safedirpath(fn, uid, gid, user, flags, level, offset) ret == 0 ? "OK" : sm_errstring(ret)); return ret; } -/* +/* ** SAFEOPEN -- do a file open with extra checking ** ** Parameters: @@ -737,7 +737,7 @@ safeopen(fn, omode, cmode, sff) } return fd; } -/* +/* ** SAFEFOPEN -- do a file open with extra checking ** ** Parameters: @@ -798,7 +798,8 @@ safefopen(fn, omode, cmode, sff) errno = save_errno; return NULL; } - fp = sm_io_open(SmFtStdiofd, SM_TIME_DEFAULT, (void *) fd, fmode, NULL); + fp = sm_io_open(SmFtStdiofd, SM_TIME_DEFAULT, + (void *) &fd, fmode, NULL); if (fp != NULL) return fp; @@ -812,7 +813,7 @@ safefopen(fn, omode, cmode, sff) errno = save_errno; return NULL; } -/* +/* ** FILECHANGED -- check to see if file changed after being opened ** ** Parameters: @@ -879,7 +880,7 @@ filechanged(fn, fd, stb) return false; } -/* +/* ** DFOPEN -- determined file open ** ** This routine has the semantics of open, except that it will diff --git a/gnu/usr.sbin/sendmail/libsmutil/snprintf.c b/gnu/usr.sbin/sendmail/libsmutil/snprintf.c index 5c6c3d44f34..6d4fbf6956c 100644 --- a/gnu/usr.sbin/sendmail/libsmutil/snprintf.c +++ b/gnu/usr.sbin/sendmail/libsmutil/snprintf.c @@ -13,9 +13,9 @@ #include <sendmail.h> -SM_RCSID("@(#)$Sendmail: snprintf.c,v 8.41 2001/08/28 23:07:01 gshapiro Exp $") +SM_RCSID("@(#)$Sendmail: snprintf.c,v 8.44 2001/09/11 04:04:56 gshapiro Exp $") -/* +/* ** SHORTENSTRING -- return short version of a string ** ** If the string is already short, just return it. If it is too |