mono/mono — pull request #379 by JamesB7 (2012-07-07 22:57:51+00:00)
Title: ACLs! (File, Directory, Mutex, EventWaitHandle, RegistryKey)

Howdy,

This is my third ACL patch, and finally you can start to see the results of the work.
In this, files, directories, mutexes, events, and registry keys all have tests and they all work on Windows (on *nix you should get a PlatformNotSupportedException, though I've left virtual calls to make specialization fairly trivial for anybody interested).

ACLs in constructors are still missing (e.g. setting at file create time) -- you have to create normally and then use Get/SetAccessControl. That's because I didn't touch any InternalCalls... I think it would be easy for someone knowing more about the runtime side to implement that though (at least on Windows) by passing lpSecurityDescriptor the result of the MutexSecurity.GetBinaryForm method. Other than that, it seems to work pretty well!