dacl

WiX Permissions, how do I express 'Modify' in terms of DACL flags

跟風遠走 提交于 2019-12-05 16:33:27
I'm attempting to apply custom rights to a folder as part of a WiX 3.0.4318.0 installer. In terms of the Security properties UI in explorer, I want to add Modify to the rights for BUILTIN\Users. Obviously it needs to be resilient against localisation of the user name. So based on my research to date, I want at least: <CreateFolder Directory="XYZ" > <PermissionEx User="[WIX_ACCOUNT_USERS]" GenericRead="yes" GenericWrite="yes" Delete="Yes" /> </CreateFolder> Questions: I'm doing this in a subdirectory - am I correct in assuming that the choice between Permission and PermissionEx is Moot? What

Is there a way to modify a process DACL in C#

这一生的挚爱 提交于 2019-12-03 03:29:49
I have legacy C++ code that changes a process DACL and am trying to use the managed code classes in .NET 3.5. I found code on the web where someone created a SetAclOnServices class that extends the NativeObjectSecurity class for services. I thought that I could implement this and just change the ResourceType.Service to ResourceType.KernelObject but when I call GetAccessControl it fails with File Not Found error. Merry Christmas. public class ProcessSecurity : NativeObjectSecurity { public ProcessSecurity(SafeHandle processHandle) : base(false, ResourceType.KernelObject, processHandle,