Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!newsfeed.btnis.ad.jp!nspixp!tokyonet.ad.jp!post-tokyonet!msi.co.jp!yynet.tama.tokyo.jp!yokota
From: Yoshinori Yokota/=?ISO-2022-JP?B?GyRCMiNFRDVBRkEbKEI=?=  <yokota@yynet.tama.tokyo.jp>
Newsgroups: fj.os.linux,fj.mail
Subject: chownsafe() on sendmail 8.8.7
Followup-To: fj.mail
Date: 20 Aug 1997 16:10:54 GMT
Organization: YY-NET, Tama, Tokyo, JAPAN
Lines: 40
Message-ID: <5tf4ue$2n5$1@cipher.yynet.tama.tokyo.jp>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
X-Newsreader: mnews [version 1.20] 1996-12/08(Sun)
Xref: galaxy.trc.rwcp.or.jp fj.os.linux:800 fj.mail:7728
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.mail&nb=7728&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B2#ED!wB?K`;T$G$9!#(B
fj.os.linux $B$H(B fj.mail $B$N%/%m%9%]%9%H!"(BFollowup-To: $B$O(B fj.mail $B$G$9!#(B

Linux (kernel 2.0.30, libc 5.4.13) $B>e$G(B sendmail 8.8.7 with 2.7Wbeta6 
$B$r;HMQ$7$F$$$^$9!#$A$g$C$H(B ML $B$G$bN)$A>e$2$k$+!"$H(B fml 2.1 $B$r%$%s%9%H!<(B
$B%k$7$F$$$?$N$G$9$,!"$I$&$7$F$b$&$^$/$G$-$^$;$s!#(B

Aug 20 23:21:36 cipher sendmail[31176]: XAA31176: XAB31176: DSN: \
    /home/maillist/ml/test-ml/include-ctl: line 4: \
    "|/home/maillist/fml/fml.pl /home/maillist/ml/test-ml...ctladdr"... \
    Address :include:/home/maillist/ml/test-ml/include-ctl is unsafe for mailing to programs

$B$H!"(B"unsafe" $B$K$J$C$F$7$^$$$^$9!#(B# $BE,Ev$K2~9T$7$F$$$^$9!#(B
Permission $B$b0l@87|L?3NG'$7$?$N$G$9$,!"LdBj$"$j$^$;$s$G$7$?!#(B

$B$=$3$G(B sendmail 8.8.5 with 2.7Wbeta5 $B$KLa$7$F$_$k$HLdBj$J$/$G$-$F$7$^(B
$B$$$^$7$?!#(B

$BM}M3$rCN$j$?$/$C$F(B src/conf.c $B$NCf$N(B chownsafe() $B$r8+$F$_$?$N$G$9$,!"(B
$B;d$N;HMQ$7$F$$$k(B Linux $B$G$O(B _PC_CHOWN_RESTRICTED $B$O(B define $B$G$O$J$/$C(B
$B$F(B enum $B$G$"$k$?$a$K!"(B

--- conf.c~Sun Aug  3 03:06:54 1997
+++ conf.cThu Aug 21 00:39:21 1997
@@ -3844,7 +3844,7 @@
 bool safedir;
 {
 #if (!defined(_POSIX_CHOWN_RESTRICTED) || _POSIX_CHOWN_RESTRICTED != -1) && \
-    defined(_PC_CHOWN_RESTRICTED)
+    (defined(__linux__) || defined(_PC_CHOWN_RESTRICTED))
 int rval;
 
 /* give the system administrator a chance to override */

$B$H$7$J$$$H$&$^$/$G$-$J$$$h$&$G$9!#(B
# $B$3$N(B diff $B$O(B sendmail 8.8.7 $B%*%j%8%J%k$N$G$9!#(B

$B$?$@%[%s%H$K$3$&$7$FNI$$$N$+NI$/J,$j$^$;$s!#3'$5$s$N$H$3$m$G$O$&$^$/$G(B
$B$-$F$$$^$9$+!)(B $B$=$l$H$b(B Linux $B$G$O!"%;%-%e%j%F%#$N4X78>e(B :include: $B$O(B
$BIT2D$J$N$G$7$g$&$+!)(B
