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: "Singh, Gangadhar S (BIO)" <email@hidden>
- Date: Fri, 24 Apr 2009 11:32:36 +0000
- Acceptlanguage: en-US
- 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: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