From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#865: 23.0.60; The directory is unsafe today Date: Fri, 05 Sep 2008 06:51:30 +0800 Message-ID: <48C06672.7080909@gnu.org> References: <48BD642C.5050405@gmail.com> <48BD74D5.4050800@gnu.org> <48BDD155.8060005@gnu.org> <48BF2171.8040101@gnu.org> <48BF5671.1040705@gnu.org> Reply-To: Jason Rumney , 865@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220569668 14170 80.91.229.12 (4 Sep 2008 23:07:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2008 23:07:48 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 865@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 05 01:08:42 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KbNwQ-0000hp-2C for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Sep 2008 01:08:42 +0200 Original-Received: from localhost ([127.0.0.1]:46082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbNvQ-0002TP-Hr for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 19:07:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbNvM-0002RV-A7 for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 19:07:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbNvL-0002Pz-6H for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 19:07:35 -0400 Original-Received: from [199.232.76.173] (port=45157 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbNvK-0002Pe-GX for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 19:07:34 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44420) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbNvJ-00007w-OP for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 19:07:34 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84N7Va0003560; Thu, 4 Sep 2008 16:07:32 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m84N04G0032341; Thu, 4 Sep 2008 16:00:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Jason Rumney Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Sep 2008 23:00:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 865 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122056874730257 (code B ref -1); Thu, 04 Sep 2008 23:00:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 4 Sep 2008 22:52:27 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84MqOVh030247 for ; Thu, 4 Sep 2008 15:52:25 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:57431) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KbNf1-00014b-Lc for emacs-pretest-bug@gnu.org; Thu, 04 Sep 2008 18:50:43 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KbNgb-0006hr-33 for emacs-pretest-bug@gnu.org; Thu, 04 Sep 2008 18:52:23 -0400 Original-Received: from mk-outboundfilter-4.mail.uk.tiscali.com ([212.74.114.32]:50077) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbNgX-0006hK-4q; Thu, 04 Sep 2008 18:52:17 -0400 Original-X-Trace: 132249858/mk-outboundfilter-2.mail.uk.tiscali.com/F2S/$F2S-INTERNET-ACCEPTED/None/124.82.237.250 X-SBRS: None X-RemoteIP: 124.82.237.250 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AocBAEADwEh8Uu36/2dsb2JhbAAIsRGHA4Fl X-IronPort-AV: E=Sophos;i="4.32,320,1217804400"; d="scan'208";a="132249858" X-IP-Direction: OUT Original-Received: from unknown (HELO [172.16.0.17]) ([124.82.237.250]) by smtp.f2s.tiscali.co.uk with ESMTP; 04 Sep 2008 23:52:13 +0100 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 04 Sep 2008 19:07:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20167 gmane.emacs.pretest.bugs:22976 Archived-At: Eli Zaretskii wrote: > The current lie is relatively small: it is limited to the > interpretation of the group ID, while the owner of the file is > displayed and interpreted correctly. > > >> If we are going to attempt this, then it is better to tell a lie >> that fits with the expectations of POSIX (ie that owners of files >> are individual users). >> > > The problem is, I don't see how we can do this reliably. In this > particular case, Emacs compares the file's ownership with the UID of > the user running Emacs, so we could pretend the file is owned by that > user. But in other cases, Emacs could compare the ownership to a UID > of some other user, and what will we do then? > I can't imagine any Lisp code doing this, as it will not know which other users are on the system. The only use for checking the owner seems to be to check if the current user is the owner. Rather than a technically correct mapping of ownership to groups, I think it is better for users if the mapping reflects whether the current user has ownership (individually or through a group they are a member of) so that such binary tests can work.