From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12632: file permissions checking mishandled when setuid Date: Sun, 14 Oct 2012 22:10:11 +0200 Message-ID: <83vcec4xy4.fsf@gnu.org> References: <5078CAB6.7020509@cs.ucla.edu> <83fw5i7s4p.fsf@gnu.org> <83a9vq7oqh.fsf@gnu.org> <507A58CC.10209@cs.ucla.edu> <83fw5h5yo6.fsf@gnu.org> <507B010F.20105@cs.ucla.edu> <831uh06gqd.fsf@gnu.org> <507B15B0.2040802@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1350245525 387 80.91.229.3 (14 Oct 2012 20:12:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2012 20:12:05 +0000 (UTC) Cc: 12632@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 14 22:12:10 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TNUXh-0006Zx-Lr for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2012 22:12:09 +0200 Original-Received: from localhost ([::1]:40454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNUXa-000698-Ip for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2012 16:12:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNUXY-00068v-BK for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 16:12:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNUXX-0007De-8b for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 16:12:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNUXX-0007Da-5T for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 16:11:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TNUYY-0006cf-25 for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 16:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Oct 2012 20:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12632 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12632-submit@debbugs.gnu.org id=B12632.135024553225398 (code B ref 12632); Sun, 14 Oct 2012 20:13:02 +0000 Original-Received: (at 12632) by debbugs.gnu.org; 14 Oct 2012 20:12:12 +0000 Original-Received: from localhost ([127.0.0.1]:44162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNUXj-0006bb-SA for submit@debbugs.gnu.org; Sun, 14 Oct 2012 16:12:12 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:46354) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNUXh-0006bO-Jg for 12632@debbugs.gnu.org; Sun, 14 Oct 2012 16:12:10 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MBW00500FUTY400@a-mtaout21.012.net.il> for 12632@debbugs.gnu.org; Sun, 14 Oct 2012 22:10:04 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MBW0052PG0SJJE0@a-mtaout21.012.net.il>; Sun, 14 Oct 2012 22:10:04 +0200 (IST) In-reply-to: <507B15B0.2040802@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65614 Archived-At: > Date: Sun, 14 Oct 2012 12:42:40 -0700 > From: Paul Eggert > CC: 12632@debbugs.gnu.org > > On 10/14/2012 11:39 AM, Eli Zaretskii wrote: > > The 'access' man page simply says this: > > > > F_OK tests for the existence of the file. > > > > It says nothing about granting any permissions (unlike when it > > describes R_OK, W_OK, and X_OK). > > One always needs search permissions when resolving file names You are talking about the directories leading to the file. I was talking about the file itself.