emacs-devel
[Top][All Lists]
Advanced

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

Re: master fails to build on FreeBSD when ACL support is on


From: Paul Eggert
Subject: Re: master fails to build on FreeBSD when ACL support is on
Date: Mon, 22 Jan 2018 16:47:30 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 01/22/2018 12:32 PM, Eli Zaretskii wrote:
One way to move forward would be to change copy-file to have a three-way
result, as set-file-acl does. That is, it could return t if successful,
nil if mildly unsuccessful, and signal an error if severely
unsuccessful.
The distinction between return values is not relevant to interactive
invocation.

Sure, but this topic came up for a noninteractive invocation: the place where rename-file calls copy-file. If rename-file had a way of telling copy-file "Hey! use your best effort to copy permissions but don't signal an error if you can't", then rename-file could suppress the signal for failure to copy ACLs without suppressing the signal for other failures. (This may not be a good idea, though; please see below.)

ACLs are not universally supported, and giving up on copying them doesn't
mean the file is not protected.
I'm afraid that it does mean that, at least for GNU/Linux ACLs, as they can prevent you from accessing a file that you could otherwise access. In other words, if you copy a file but not its ACLs, a user may be able to access the copy even though they cannot access the original. This is an argument against silently continuing when ACLs cannot be copied.




reply via email to

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