site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com -- Terry Hi, 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:jorgar@gmail.com] Sent: Wednesday, April 22, 2009 9:02 PM To: Singh, Gangadhar S (BIO) Cc: darwin-dev@lists.apple.com Subject: Re: ACL Types supported in Mac OS X Hi , Could anybody clarify what acl type are supported? ACL_TYPE_EXTENDED is supported -- James Peach | jorgar@gmail.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/tlambert%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. On Apr 24, 2009, at 4:32 AM, Singh, Gangadhar S (BIO) wrote: 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) ; 2009/4/22 Singh, Gangadhar S (BIO) <gangadhar.singh@hp.com>: 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. /* 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; This email sent to tlambert@apple.com This email sent to site_archiver@lists.apple.com