RE: ACL Types supported in Mac OS X
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcnDX2pqhXZf9fPARMylXsgkCllM7wBbKTOw Thread-topic: ACL Types supported in Mac OS X 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: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 2009/4/22 Singh, Gangadhar S (BIO) <gangadhar.singh@hp.com>:
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 | 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/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Singh, Gangadhar S (BIO)