Re: ACL Types supported in Mac OS X
Re: ACL Types supported in Mac OS X
- Subject: Re: ACL Types supported in Mac OS X
- From: Terry Lambert <email@hidden>
- Date: Sat, 25 Apr 2009 01:08:26 -0700
They are enumerated types, not bits, so you cannot use them in
combination.
And as you have already been told in this thread, the only type that's
supported is ACL_TYPE_EXTENDED. If you look at our published source
code for Libc, you will see that calling the function acl_get_fd_np()
with anthing other than plain vanilla ACL_TYPE_EXTENDED will get you
an error of EINVAL. You'll also see that these type only exist in
Libc's imagination, and that the kernel implementation doesn't know
that other types could even exist, since it's not a parameter to
filesec_get_property.
-- Terry
On Apr 24, 2009, at 4:32 AM, Singh, Gangadhar S (BIO) wrote:
Hi,
Can we use acl_get_fd_np() to receive all different acls in one go
or it should be received one by one.
Example:
acl_access = acl_get_fd_np(fs, ACL_TYPE_ACCESS| ACL_TYPE_DEFAULT |
ACL_TYPE_EXTENDED) ;
Or
acl_access1 = acl_get_fd_np(fs, ACL_TYPE_ACCESS) ;
acl_access2 = acl_get_fd_np(fs, ACL_TYPE_DEFAULT ) ;
acl_access3 = acl_get_fd_np(fs, ACL_TYPE_EXTENDED) ;
Regards
Gangadhr
-----Original Message-----
From: James Peach [mailto:email@hidden]
Sent: Wednesday, April 22, 2009 9:02 PM
To: Singh, Gangadhar S (BIO)
Cc: email@hidden
Subject: Re: ACL Types supported in Mac OS X
2009/4/22 Singh, Gangadhar S (BIO) <email@hidden>:
Hi ,
According to man pages of acl_get_fd_np(), it says that it's possible
to retrieval any type of ACL from a file descriptor.
But in the /usr/sys/acl.h, I see most of the ACL types are
commented
as not supported, bit confuse here.
Could anybody clarify what acl type are supported?
/* 23.2.6 Individual ACL types */
typedef enum {
ACL_TYPE_EXTENDED = 0x00000100,
/* Posix 1003.1e types - not supported */
ACL_TYPE_ACCESS = 0x00000000,
ACL_TYPE_DEFAULT = 0x00000001,
/* The following types are defined on FreeBSD/Linux - not supported
*/
ACL_TYPE_AFS = 0x00000002,
ACL_TYPE_CODA = 0x00000003,
ACL_TYPE_NTFS = 0x00000004,
ACL_TYPE_NWFS = 0x00000005 } acl_type_t;
ACL_TYPE_EXTENDED is supported
--
James Peach | email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden