all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jason Rumney <jasonr@gnu.org>
Cc: emacs-pretest-bug@gnu.org, 865@emacsbugs.donarmstrong.com
Subject: bug#865: 23.0.60; The directory is unsafe today
Date: Thu, 04 Sep 2008 19:10:51 +0300	[thread overview]
Message-ID: <u8wu77uyc.fsf@gnu.org> (raw)
In-Reply-To: <48BF5671.1040705@gnu.org>

> Date: Thu, 04 Sep 2008 11:30:57 +0800
> From: Jason Rumney <jasonr@gnu.org>
> CC: 865@emacsbugs.donarmstrong.com, emacs-pretest-bug@gnu.org
> 
> > I think the only good solution in that venue would be to have a new
> > primitive for such tests, and implement it on Windows so that it will
> > cater to this special case.  Any other solution is likely to lie about
> > the file's security attributes.
> >   
> 
> We are telling a lie already by attempting to map ACLs to POSIX 
> ownership.

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?

That said, I won't necessarily object if you find a clever way out of
this that leaves existing Lisp code intact.

> A different API that tells the full story might be a good idea, but
> any new API is only going to be used by future developers who know
> about the API, it cannot fix problems in existing Lisp code that
> might make the same assumptions as server.el.

We are talking about Emacs 23, so it's not too late to find all those
places (only in the Emacs distro, of course) and fix them.  I just
looked, there aren't so many of them.  And server.el should have an
entirely different code to do what it wants on Windows, anyway.






  reply	other threads:[~2008-09-04 16:10 UTC|newest]

Thread overview: 87+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02 16:05 bug#865: 23.0.60; The directory is unsafe today Lennart Borgman (gmail)
2008-09-02 17:16 ` Jason Rumney
2008-09-02 18:06   ` Lennart Borgman (gmail)
2008-09-02 18:41     ` Eli Zaretskii
2008-09-02 19:10       ` Lennart Borgman (gmail)
2008-09-02 19:31         ` Eli Zaretskii
2008-09-02 19:37           ` Lennart Borgman (gmail)
2008-09-02 22:38         ` Juanma Barranquero
2008-09-02 22:40           ` Lennart Borgman (gmail)
2008-09-02 22:42             ` Juanma Barranquero
2008-09-02 23:01               ` Lennart Borgman (gmail)
2008-09-02 23:06                 ` Juanma Barranquero
2008-09-02 23:11                   ` Lennart Borgman (gmail)
2008-09-02 23:17                     ` Juanma Barranquero
2008-09-02 23:19                       ` Lennart Borgman (gmail)
2008-09-02 23:25                         ` Juanma Barranquero
2008-09-02 23:27                           ` Lennart Borgman (gmail)
2008-09-02 23:38                             ` Juanma Barranquero
2008-09-02 23:41                               ` Lennart Borgman (gmail)
2008-09-02 23:44                                 ` Juanma Barranquero
2008-09-02 23:50                                   ` Lennart Borgman (gmail)
2008-09-02 23:52                                     ` Juanma Barranquero
2008-09-02 23:58                                       ` Lennart Borgman (gmail)
2008-09-03  0:00                                         ` Juanma Barranquero
2008-09-03  0:05                                           ` Lennart Borgman (gmail)
2008-09-03 16:29     ` Stefan Monnier
2008-09-03 16:35       ` Lennart Borgman (gmail)
2008-09-03 18:05         ` Stefan Monnier
2008-09-03 18:57           ` Eli Zaretskii
2008-09-03 18:13         ` Eli Zaretskii
2008-09-02 19:19   ` Eli Zaretskii
2008-09-02 23:50     ` Jason Rumney
2008-09-03  3:27       ` Eli Zaretskii
2008-09-03 18:31         ` Eli Zaretskii
2008-09-03 23:44           ` Jason Rumney
2008-09-04  0:16             ` Lennart Borgman (gmail)
2008-09-04  3:22             ` Eli Zaretskii
2008-09-04  3:30               ` Jason Rumney
2008-09-04 16:10                 ` Eli Zaretskii [this message]
2008-09-04 22:51                   ` Jason Rumney
2008-09-05 10:21                     ` Eli Zaretskii
2008-09-05  3:11                   ` Stefan Monnier
2008-09-05 10:52                     ` Eli Zaretskii
2008-09-05 13:16                       ` Stefan Monnier
2008-09-05 15:11                         ` Eli Zaretskii
2008-09-05 21:36                           ` Stefan Monnier
2008-09-06  7:08                             ` Eli Zaretskii
2008-09-06 19:45                               ` Stefan Monnier
2008-09-06 21:38                                 ` Eli Zaretskii
2008-09-07  3:43                                   ` Stefan Monnier
2008-09-07 18:33                                     ` Eli Zaretskii
2008-09-08  3:33                                       ` Stefan Monnier
2008-09-08  3:40                                         ` Jason Rumney
2008-09-08 11:25                                           ` Stefan Monnier
2008-09-08 20:08                                         ` Eli Zaretskii
2008-09-09 14:37                                           ` Stefan Monnier
2008-09-09 18:52                                             ` Eli Zaretskii
2008-09-10 16:32                                               ` Stefan Monnier
     [not found]                                   ` <mailman.18638.1220760463.18990.bug-gnu-emacs@gnu.org>
2008-09-07 15:44                                     ` Francis Litterio
2008-09-07 17:36                                       ` Lennart Borgman (gmail)
2008-09-07 18:41                                       ` Eli Zaretskii
     [not found]                             ` <mailman.18580.1220686060.18990.bug-gnu-emacs@gnu.org>
2008-09-06 17:04                               ` Francis Litterio
2008-09-06 17:41                                 ` Lennart Borgman (gmail)
2008-09-05 13:18                       ` Lennart Borgman
2008-09-05 14:27                         ` Eli Zaretskii
2008-09-05 15:34                           ` Stefan Monnier
2008-09-05 17:19                             ` Eli Zaretskii
2008-09-05 14:28                         ` Jason Rumney
2008-09-05 15:16                           ` Lennart Borgman
2008-09-05 17:13                             ` Eli Zaretskii
     [not found]               ` <mailman.18384.1220500061.18990.bug-gnu-emacs@gnu.org>
2008-09-04 15:56                 ` Francis Litterio
2008-09-04 17:40                   ` Eli Zaretskii
     [not found]                   ` <mailman.18443.1220551657.18990.bug-gnu-emacs@gnu.org>
2008-09-04 18:08                     ` Francis Litterio
2008-09-05  9:54                       ` Eli Zaretskii
2008-09-05 10:29                         ` Lennart Borgman
2008-09-04 22:46                   ` Jason Rumney
2008-09-04 23:17                     ` Lennart Borgman (gmail)
2008-09-04 23:25                     ` Lennart Borgman (gmail)
2008-09-05 10:32                     ` Eli Zaretskii
     [not found]                     ` <mailman.18512.1220611660.18990.bug-gnu-emacs@gnu.org>
2008-09-05 14:23                       ` Francis Litterio
2008-09-05 17:12                         ` Eli Zaretskii
     [not found]                         ` <mailman.18547.1220635661.18990.bug-gnu-emacs@gnu.org>
2008-09-05 20:29                           ` Francis Litterio
2008-09-06  1:30                             ` Lennart Borgman (gmail)
     [not found]                             ` <mailman.18565.1220665659.18990.bug-gnu-emacs@gnu.org>
2008-09-06  3:33                               ` Francis Litterio
2008-09-06 11:44                             ` Eli Zaretskii
2017-09-24 21:25 ` Noam Postavsky
2017-10-21 19:56   ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u8wu77uyc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=865@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=jasonr@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.