Solved

Process.GetProcesses() and User Privilege

Posted on 2006-06-12
3
333 Views
Last Modified: 2010-04-16
I have a VS 2003 C# application that works fine in most environments.  It has recently been installed in a corporate environment (WinXP / Server 2003) where the user workstations are pretty well 'tightened-down' from a security point of view.  The application makes use of Process.GetProcesses() and it appears that the application throws an exception when this is called due to insufficient privilege.  So my question is -- from a security perspective, what changes in groups or policy (or whatever) need to be made such that Process.GetProcesses() will not throw?  Obviously, making everyone an admin would solve the problem, but I am looking for something a bit more targeted and minimalistic that will keep their administrator happy.

Thanks!
0
Comment
Question by:bnonnemann
3 Comments
 
LVL 11

Accepted Solution

by:
Expert1701 earned 125 total points
ID: 16887619
The System.Diagnostics.Process.GetProcesses method requires the calling assembly to be fully trusted by the .NET Framework.  You may consider signing your assembly and then deploying an enterprise policy that includes the required permissions.

  Signing an Assembly with a Strong Name
  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconassigningassemblystrongname.asp

  .NET Framework Enterprise Security Policy Administration and Deployment
  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/entsecpoladmin.asp
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now