OSX vs. Win32 ACL permission bit mappings
OSX vs. Win32 ACL permission bit mappings
- Subject: OSX vs. Win32 ACL permission bit mappings
- From: John Michael Zorko <email@hidden>
- Date: Mon, 16 Feb 2009 16:38:45 -0800
Hello, all ...
This may seem a bit off-topic, but it has some relevance I think. I'm
writing code to save ACL data in an SQLite database, and this code
needs to run on OSX and WIndows. I'd like to give the database field
names some relevance, instead of naming them "field 1", "field 2",
"field 3" ... Regarding ACLs, I need to know which OSX permissions
bits correspond to which Win32 permission bits in their respective
ACEs. I understand that some of them may not map at all, but I need
to know which ones do and don't. Some of them seem obvious, but some
do not:
• Win32 FILE_GENERIC_READ probably corresponds to ACL_READ_DATA
• Win32 FILE_GENERIC_WRITE probably corresponds to ACL_WRITE_DATA
• Win32 FILE_GENERIC_EXECUTE probably corresponds to ACL_EXECUTE
• Win32 GENERIC_READ ?
• Win32 GENERIC_WRITE ?
• Win32 GENERIC_EXECUTE ?
• Win32 GENERIC_ALL ?
• Win32 DELETE probably corresponds to ACL_DELETE
• Win32 READ_CONTROL probably corresponds to ACL_READ_SECURITY ?
• Win32 WRITE_DAC probably corresponds to ACL_WRITE_SECURITY ?
• Win32 WRITE_OWNER probably corresponds to ACL_CHANGE_OWNER
• Win32 SYNCHRONIZE ?
... do the following POSIX / OSX permissions map to Win32 permissions?
ACL_APPEND_DATA
ACL_DELETE_CHILD
ACL_READ_ATTRIBUTES
ACL_WRITE_ATTRIBUTES
ACL_READ_EXTATTRIBUTES
ACL_WRITE_EXTATTRIBUTES
Regards,
John
Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com
_______________________________________________
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