[Top][All Lists]

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

Re: Gnulib ACL wrappers

From: Ken Brown
Subject: Re: Gnulib ACL wrappers
Date: Thu, 28 Aug 2014 15:37:01 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 8/28/2014 2:33 PM, Paul Eggert wrote:
Ken Brown wrote:
Or am I misunderstanding something?

Sorry, I don't know; again, I don't use Cygwin and so can be only of
limited help debugging it.  For what it's worth, on Solaris 11 an Emacs
trunk configure says this:

checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking for library containing acl_get_file... no
checking for facl... yes
checking for library containing acl_trivial... -lsec
checking for acl_trivial... yes

and 'truss' says that (copy-file "/etc/passwd" "~/passwd" nil nil nil t)
executed the following system calls:

facl(9, ACE_GETACLCNT, 0, 0x00000000)           = 3
facl(9, ACE_GETACL, 3, 0x087BA410)              = 3
facl(9, GETACLCNT, 0, 0x00000000)               Err#89 ENOSYS
facl(10, ACE_SETACL, 3, 0x087BA410)             = 0
fchmod(10, 0644)                                = 0

which seems to indicate that the ACL stuff is working on Solaris, at
least to some extent.  Perhaps you can look at the corresponding output
on Cygwin and see where things are going wrong there.

I'm seeing something similar on Cygwin (except that Cygwin doesn't have acl_trivial), so I guess this is working as designed. I was thrown off by the fact that so much of the ACL code in fileio.c is conditioned on HAVE_ACL_SET_FILE. So I guess the functions that require this won't work on Solaris either.

Sorry for the noise, and thanks for your help.


reply via email to

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