473,388 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Changing Process ACL's

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
Jan 31 '08 #1
3 3386
sternr,

Well, there is always SetKernelObjectSecurity.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"sternr" <St****@gmail.comwrote in message
news:ea**********************************@q39g2000 hsf.googlegroups.com...
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
Jan 31 '08 #2
On Jan 31, 3:05*pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
sternr,

* * Well, there is always SetKernelObjectSecurity.

--
* * * * * - Nicholas Paldino [.NET/C# MVP]
* * * * * - m...@spam.guard.caspershouse.com

"sternr" <Ste...@gmail.comwrote in message

news:ea**********************************@q39g2000 hsf.googlegroups.com...
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- Hide quoted text -

- Show quoted text -
Hey,
But how do I manipulate the ACL's?

Thanks
Jan 31 '08 #3
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]
- mv*@spam.guard.caspershouse.com

"sternr" <St****@gmail.comwrote in message
news:40**********************************@z17g2000 hsg.googlegroups.com...
On Jan 31, 3:05 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
sternr,

Well, there is always SetKernelObjectSecurity.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"sternr" <Ste...@gmail.comwrote in message

news:ea**********************************@q39g2000 hsf.googlegroups.com...
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- Hide quoted text -

- Show quoted text -
Hey,
But how do I manipulate the ACL's?

Thanks

Feb 1 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Josh | last post by:
I've just installed PHP on an IIS 5/W2K server. The installation was succesful, as I can load a test.php file in the first website I setup for PHP. However, the second website I setup for PHP...
1
by: Sebastian Sosna | last post by:
Hello NG! Iam trying to write Access Control Settings for Users in Active Dir. First what i do is to delegate a Trustee in a Container, with permissions. This works fine. Lets take Guests as...
3
by: hangten | last post by:
Does anyone know of an alternate command to invoke an executable other than Process.Start ? I have a service that invokes an executabe. But the service has minimal privs. and I'm getting an...
4
by: Marc Jennings | last post by:
Hi all, I want to run an external app from an assembly. Simple enough... > Process ExtProcess = new Process(); > ExtProcess.StartInfo.FileName = myAppName; > ExtProcess.StartInfo.Arguments =...
11
by: Jeffrey | last post by:
hello, I have to call the Handle from a process and FullTrust is needed otherwise it happens an exception. currently i am using only this code and the exception occurs.
11
by: Richard Myers | last post by:
Hello Im sure many of you have seen this error message before: For us its the third time this year. This error occurs seemingly at random. I have no idea what causes it too happen. None....
5
by: Paul Bergson | last post by:
I have been trying to get a process to start up and run with arguments passed to it. I have gotten close (Thanks to help from this board) but I there is a failure while I'm running this because...
0
by: arielkanat | last post by:
Hi I'm trying to make my DB2 CM ACL work, but there's seems to be a problem- I want users to be able to change their level of security , so others can or can NOT read the docs. when i let them...
7
by: =?Utf-8?B?ams=?= | last post by:
I am using System.Diagnostics.Process class to open a word document by call ing Process.Start("test.doc"). I am using C# as programming language. On some of the computers on running this code i get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.