s3: OneFS unmappable sids support.
authorDan Sledz <dsledz@isilon.com>
Fri, 9 Jan 2009 01:09:28 +0000 (17:09 -0800)
committerSteven Danneman <steven.danneman@isilon.com>
Fri, 23 Jan 2009 21:49:12 +0000 (13:49 -0800)
commitb7eabeb347d6815a7a4a0ece282dba5da94777ca
tree58742f67bdfe3bc7c57a1705b8ad58bfb064fd25
parent481183ab025a84dd8d08c1e365251b274597b6c9
s3: OneFS unmappable sids support.

Updates the onefs vfs module to add configurable behavior to deal
with sids that are unknown to us.  The best examples are aces that
come from robocopy/xcopy.

Adds the following share level options (which are specific to the vfs_onefs
module):

onefs: ignore unmappable sids (Default = false)
If this option is set to true, sids which could not be resolved to
a uid/gid are ignored.  If an unmappable sid is encountered as the owner
or group, the owner/group is converted to BUILTIN\Administrators.

onefs: unmappable sids ignore list (Default = empty)
Only the sids in the list are ignored.

onefs: ignore sacls (Default = false)
SACLs are ignored

onefs: unmappable sids deny everyone (Default = false)
If an unmappable sid is found in a deny ACE, the ACE's identity is
changed to Everyone.
source3/modules/onefs.h
source3/modules/onefs_acl.c
source3/modules/onefs_system.c