Changing Process ACL's

  • Thread starter Thread starter sternr
  • Start date Start date
S

sternr

Hey,

I know how to get a process's DACL using the GetKernelObjectSecurity.
But how can I modify and update I don't know.

Any help\example would be greatly appreciated!

Thanks ahead!

sternr
 
sternr,

    Well, there is always SetKernelObjectSecurity.

--
          - Nicholas Paldino [.NET/C# MVP]
          - (e-mail address removed)




I know how to get a process's DACL using the GetKernelObjectSecurity.
But how can I modify and update I don't know.
Any help\example would be greatly appreciated!
Thanks ahead!
sternr- Hide quoted text -

- Show quoted text -

Hey,
But how do I manipulate the ACL's?

Thanks
 
You shouldn't manipulate SECURITY_DESCRIPTOR structures directly.
Rather, use the following APIs to modify the various parts of the security
descriptor:

GetSecurityDescriptorControl
GetSecurityDescriptorDacl
GetSecurityDescriptorGroup
GetSecurityDescriptorLength
GetSecurityDescriptorOwner
GetSecurityDescriptorRMControl
GetSecurityDescriptorSacl
InitializeSecurityDescriptor
IsValidSecurityDescriptor
SetSecurityDescriptorDacl
SetSecurityDescriptorGroup
SetSecurityDescriptorOwner
SetSecurityDescriptorRMControl
SetSecurityDescriptorSacl

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

sternr,

Well, there is always SetKernelObjectSecurity.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)




I know how to get a process's DACL using the GetKernelObjectSecurity.
But how can I modify and update I don't know.
Any help\example would be greatly appreciated!
Thanks ahead!
sternr- Hide quoted text -

- Show quoted text -

Hey,
But how do I manipulate the ACL's?

Thanks
 
And much better is to author a class that derives from the
System.Security.AccessControl.NativeObjectSecurity class.
I have a class that does exactly this for Thread objects.
Willy.


Nicholas Paldino said:
You shouldn't manipulate SECURITY_DESCRIPTOR structures directly.
Rather, use the following APIs to modify the various parts of the security
descriptor:

GetSecurityDescriptorControl
GetSecurityDescriptorDacl
GetSecurityDescriptorGroup
GetSecurityDescriptorLength
GetSecurityDescriptorOwner
GetSecurityDescriptorRMControl
GetSecurityDescriptorSacl
InitializeSecurityDescriptor
IsValidSecurityDescriptor
SetSecurityDescriptorDacl
SetSecurityDescriptorGroup
SetSecurityDescriptorOwner
SetSecurityDescriptorRMControl
SetSecurityDescriptorSacl

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

sternr,

Well, there is always SetKernelObjectSecurity.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)




I know how to get a process's DACL using the GetKernelObjectSecurity.
But how can I modify and update I don't know.
Any help\example would be greatly appreciated!
Thanks ahead!
sternr- Hide quoted text -

- Show quoted text -

Hey,
But how do I manipulate the ACL's?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top