Re: emacs installs a lot of 777 directories

看板FB_security作者時間16年前 (2009/04/21 04:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串21/21 (看更多)
On Thu, 19 Mar 2009 14:16:04 +0200 Giorgos Keramidas <keramida@ceid.upatras.gr> wrote: > On Thu, 19 Mar 2009 12:26:06 +0200, Nikos Ntarmos <ntarmos@cs.uoi.gr> wrote: > >On Sun, Mar 15, 2009 at 09:30:44PM +0200, Giorgos Keramidas wrote: > >>On Fri, 6 Mar 2009 23:56:10 +0100 (CET), freebsd001@pc.jgr.de wrote: > >>> Dear list members, > >>> > >>> I am not only wondering about the permissions of several emacs-related > >>> directories as it has recently been mentioned in this thread, but also > >>> about the ownership of several emacs-related files. > >> > >> This seems to be a local installation glitch. > >> > >>>>find . -not -user root | head -n 3 > >>> ./emacs/22.3/etc > >>> ./emacs/22.3/etc/GNUS-NEWS > >>> ./emacs/22.3/etc/fr-drdref.ps > >>> > >>>>find . -not -user root | wc -l > >>> 2643 > > > > That's probably due to the fact that emacs uses something along the > > lines of 'tar -chf - ... | tar -xvf - ...' to copy the files, followed > > (in some cases) by a chown to $LOGNAME (or if that is not set, to > > $USERNAME). If you just 'su', LOGNAME remains set to what it was > > before (i.e. nutzer), while 'su -' will clear that out. > > Yep, that's exactly what the Emacs build glue does. > > One of the directories mentioned in the permission listings of the > thread includes `leim/'. The source of `emacs/leim/Makefile.in' > installs files with tar and chown: > > 240 tar -chf - quail/* ja-dic \ > 241 | (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\ > ... > 264 find ${INSTALLDIR} -exec chown $${installuser} '{}' ';' > I don't think it's a right thing to do, as it doesn't obey nor SHAREOWN/ SHAREGROUP not SHAREMODE, which all ports are supposed to follow. Exactly for these reason we have special macros COPYTREE_* in bsd.port.mk. Any chance emacs port could be tricked to use these macros instead of a hand- crafted untar command? -- Stanislav Sedov ST4096-RIPE !DSPAM:49eca7a0967001169884880! _______________________________________________ freebsd-security@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
文章代碼(AID): #19xDI000 (FB_security)
討論串 (同標題文章)
文章代碼(AID): #19xDI000 (FB_security)