diff options
author | Wichert Akkerman <wakkerma@debian.org> | 1999-12-07 02:32:22 +0100 |
---|---|---|
committer | Andreas Beckmann <debian@abeckmann.de> | 2012-10-01 19:58:39 +0200 |
commit | 4e2c4cdcd62c4ab1d5e884e8afaa0bbe1b981e42 (patch) | |
tree | 3735b995048d3eccbfa7e5095e00d483c2549225 /src/main.c | |
parent | 7b9056b97dd10ee7b6b02f88a239f9f99cfa38f8 (diff) | |
download | sendmail-4e2c4cdcd62c4ab1d5e884e8afaa0bbe1b981e42.tar.gz |
Imported Debian patch 8.9.3-3slink1debian/8.9.3-3slink1
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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; |