diff options
author | peter <peter@FreeBSD.org> | 1999-11-25 18:03:05 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-11-25 18:03:05 +0000 |
commit | f1034aa49444739205de3be80a0c572bdf1c42a2 (patch) | |
tree | 46640a94042cfcf4b444b22df1b0a5d5fd0f3261 /contrib/sendmail | |
parent | 4edd65bbda42c7b2b0124b4f7bbaf38006a86842 (diff) | |
parent | a392fe0bdb7081117c445f5dcc98d5ed4013dc17 (diff) | |
download | FreeBSD-src-f1034aa49444739205de3be80a0c572bdf1c42a2.zip FreeBSD-src-f1034aa49444739205de3be80a0c572bdf1c42a2.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r53696,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/sendmail')
-rw-r--r-- | contrib/sendmail/src/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/sendmail/src/main.c b/contrib/sendmail/src/main.c index cea9d15..cb6fd57 100644 --- a/contrib/sendmail/src/main.c +++ b/contrib/sendmail/src/main.c @@ -984,6 +984,18 @@ main(argc, argv, envp) usrerr("Permission denied"); finis(FALSE, EX_USAGE); } + if (OpMode == MD_INITALIAS && + RealUid != 0 && + RealUid != TrustedUid && + !wordinclass(RealUserName, 't')) + { + if (LogLevel > 1) + sm_syslog(LOG_ALERT, NOQID, + "user %d attempted to rebuild the alias map", + RealUid); + usrerr("Permission denied"); + finis(FALSE, EX_USAGE); + } if (MeToo) BlankEnvelope.e_flags |= EF_METOO; |