From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han Boetes Newsgroups: gmane.emacs.devel Subject: Re: backup method Date: Mon, 31 Jan 2005 05:07:17 +0100 Message-ID: <20050131040739.GD6167@boetes.org> References: <20050127000210.GA6167@boetes.org> <200501270045.j0R0jIq06197@raven.dms.auburn.edu> <20050127015432.GB6167@boetes.org> <20050128035618.GI6167@boetes.org> <20050129060851.GQ6167@boetes.org> <200501291842.j0TIgVw09020@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1107144819 13726 80.91.229.6 (31 Jan 2005 04:13:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2005 04:13:39 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 31 05:13:33 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CvSwP-0007mJ-00 for ; Mon, 31 Jan 2005 05:13:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvT93-0001Ox-Fp for ged-emacs-devel@m.gmane.org; Sun, 30 Jan 2005 23:26:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CvT76-0000YV-Go for emacs-devel@gnu.org; Sun, 30 Jan 2005 23:24:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CvT6p-0000R7-9r for emacs-devel@gnu.org; Sun, 30 Jan 2005 23:24:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvT6o-0000QU-FQ for emacs-devel@gnu.org; Sun, 30 Jan 2005 23:24:18 -0500 Original-Received: from [217.120.147.78] (helo=boetes.org) by monty-python.gnu.org with smtp (Exim 4.34) id 1CvSqM-0000gv-L0 for emacs-devel@gnu.org; Sun, 30 Jan 2005 23:07:19 -0500 Original-Received: (qmail 26551 invoked by uid 1000); 31 Jan 2005 04:07:39 -0000 Original-To: emacs-devel@gnu.org Mail-Followup-To: emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:32660 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32660 Richard Stallman wrote: > But why avoid making backups for /tmp? Is there some specific > reason why it is bad to make backups for /tmp? Or was the idea > nothing more than "these files are unimportant anyway"? Symlink attacks. If you are going open /tmp/tmpfile, you will also create /tmp/tmpfile~ as a backup. Now I can do two things: 1) touch /home/mine/foo chmod 666 /home/mine/foo ln -s /home/mine/foo /tmp/tmpfile~ And after the tmpfile creation of your file has been done I can read the contents of the tempfile. 2) ln -s /home/you/.shellrc /tmp/tmpfile~ And making the backup will overwrite your .shellrc. # Han