bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12632: file permissions checking mishandled when setuid


From: Paul Eggert
Subject: bug#12632: file permissions checking mishandled when setuid
Date: Sun, 21 Oct 2012 23:03:30 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121011 Thunderbird/16.0.1

On 10/20/2012 09:24 PM, Glenn Morris wrote:
> I really can't see how this is something that "People do [...] all the
> time, often unwittingly"

Yes, you're right, I was exaggerating -- it used to be more
common, but it's rarer nowadays.

Anyway, now that this patch is waiting until after the feature
freeze, it can accommodate some cleanup changes.  I've attached
the revised version.  It speeds up file-accessible-directory-p
by doing it with one system call rather than two, avoids the
unnecessary NILP check in file-writable-p that we discussed earlier,
fixes a bug where file-writable-p thinks that one can create a file
in a directory even when one cannot, does a better job of checking
whether directories are searchable rather than merely whether they
exist, and closes a couple more races related to permissions checking.
None of this is urgent but I figured I'd write it up while I was
thinking about it.

This patch is relative to trunk bzr 110616.

Attachment: euidaccess.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]