473,626 Members | 3,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Code access permission to access processes running in memory

Does anyone know the standard code access permission to be able to
manipulate a process using the Process class?

Thanks
Simon.
Feb 3 '06 #1
5 3711

"Simon Hart" <srhartone@[no spam]yahoo.com> wrote in message
news:e4******** ******@TK2MSFTN GP11.phx.gbl...
| Does anyone know the standard code access permission to be able to
| manipulate a process using the Process class?
|
| Thanks
| Simon.
|
|

Not sure what you mean with "code access permission", if you mean "security
privileges" then you'll need "SeDebugPrivile ge".

Willy.
Feb 3 '06 #2
I want to request a permission using declarative permissions in my assembly
to grant permission to shut down processes. Namespace:
System.Security .CodeAccessPerm ission. I don't want to have to write my own.

Don't know what "SeDebugPrivile ge" is?

"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
news:Op******** ******@TK2MSFTN GP12.phx.gbl...

"Simon Hart" <srhartone@[no spam]yahoo.com> wrote in message
news:e4******** ******@TK2MSFTN GP11.phx.gbl...
| Does anyone know the standard code access permission to be able to
| manipulate a process using the Process class?
|
| Thanks
| Simon.
|
|

Not sure what you mean with "code access permission", if you mean
"security
privileges" then you'll need "SeDebugPrivile ge".

Willy.

Feb 3 '06 #3
There is no such standard permission attribute, so you will have to write
your own. Note that I'm not clear why you need this, I guess you could
restrict the applications who are able to stop other processes based on the
callers (the process or thread) identity.

"SeDebugPrivile ge" is a windows security privilege, this one is required to
enable debuging and reading/writing into some other processes address space.
This is a user privilege and has nothing to do with CAS security.

Willy.

"Simon Hart" <srhartone@[no spam]yahoo.com> wrote in message
news:eC******** ******@TK2MSFTN GP11.phx.gbl...
|I want to request a permission using declarative permissions in my assembly
| to grant permission to shut down processes. Namespace:
| System.Security .CodeAccessPerm ission. I don't want to have to write my
own.
|
| Don't know what "SeDebugPrivile ge" is?
|
| "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
| news:Op******** ******@TK2MSFTN GP12.phx.gbl...
| >
| > "Simon Hart" <srhartone@[no spam]yahoo.com> wrote in message
| > news:e4******** ******@TK2MSFTN GP11.phx.gbl...
| > | Does anyone know the standard code access permission to be able to
| > | manipulate a process using the Process class?
| > |
| > | Thanks
| > | Simon.
| > |
| > |
| >
| > Not sure what you mean with "code access permission", if you mean
| > "security
| > privileges" then you'll need "SeDebugPrivile ge".
| >
| > Willy.
| >
| >
|
|
Feb 3 '06 #4
I've written a C# Windows Service which runs on servers 2000, 2003 etc which
manages our surrogate processes and shuts them down if they are rogue.
The problem when running on a 2003 server by default the SYSTEM account
under 2003 server does not have permissions to shutdown processes and no
error exceptions are fired.
I might use the WindowsPrincipa l class and use IsInRole to determine if the
process is running as an administrator instead of writing my own custom
permission class which is alot of hastle to develop then it would need to be
deployed.

"Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
There is no such standard permission attribute, so you will have to write
your own. Note that I'm not clear why you need this, I guess you could
restrict the applications who are able to stop other processes based on
the
callers (the process or thread) identity.

"SeDebugPrivile ge" is a windows security privilege, this one is required
to
enable debuging and reading/writing into some other processes address
space.
This is a user privilege and has nothing to do with CAS security.

Willy.

"Simon Hart" <srhartone@[no spam]yahoo.com> wrote in message
news:eC******** ******@TK2MSFTN GP11.phx.gbl...
|I want to request a permission using declarative permissions in my
assembly
| to grant permission to shut down processes. Namespace:
| System.Security .CodeAccessPerm ission. I don't want to have to write my
own.
|
| Don't know what "SeDebugPrivile ge" is?
|
| "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
| news:Op******** ******@TK2MSFTN GP12.phx.gbl...
| >
| > "Simon Hart" <srhartone@[no spam]yahoo.com> wrote in message
| > news:e4******** ******@TK2MSFTN GP11.phx.gbl...
| > | Does anyone know the standard code access permission to be able to
| > | manipulate a process using the Process class?
| > |
| > | Thanks
| > | Simon.
| > |
| > |
| >
| > Not sure what you mean with "code access permission", if you mean
| > "security
| > privileges" then you'll need "SeDebugPrivile ge".
| >
| > Willy.
| >
| >
|
|

Feb 3 '06 #5
Weird, SYSTEM should have this privilege, are you sure the service runs as
"localsyste m", on W2K3 services run by default as 'local service" which has
no such privilege.

Willy.

"Simon Hart" <srhartone@[no spam]yahoo.com> wrote in message
news:OK******** ******@tk2msftn gp13.phx.gbl...
| I've written a C# Windows Service which runs on servers 2000, 2003 etc
which
| manages our surrogate processes and shuts them down if they are rogue.
| The problem when running on a 2003 server by default the SYSTEM account
| under 2003 server does not have permissions to shutdown processes and no
| error exceptions are fired.
| I might use the WindowsPrincipa l class and use IsInRole to determine if
the
| process is running as an administrator instead of writing my own custom
| permission class which is alot of hastle to develop then it would need to
be
| deployed.
|
| "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
| news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
| > There is no such standard permission attribute, so you will have to
write
| > your own. Note that I'm not clear why you need this, I guess you could
| > restrict the applications who are able to stop other processes based on
| > the
| > callers (the process or thread) identity.
| >
| > "SeDebugPrivile ge" is a windows security privilege, this one is required
| > to
| > enable debuging and reading/writing into some other processes address
| > space.
| > This is a user privilege and has nothing to do with CAS security.
| >
| > Willy.
| >
| >
| >
| > "Simon Hart" <srhartone@[no spam]yahoo.com> wrote in message
| > news:eC******** ******@TK2MSFTN GP11.phx.gbl...
| > |I want to request a permission using declarative permissions in my
| > assembly
| > | to grant permission to shut down processes. Namespace:
| > | System.Security .CodeAccessPerm ission. I don't want to have to write my
| > own.
| > |
| > | Don't know what "SeDebugPrivile ge" is?
| > |
| > | "Willy Denoyette [MVP]" <wi************ *@telenet.be> wrote in message
| > | news:Op******** ******@TK2MSFTN GP12.phx.gbl...
| > | >
| > | > "Simon Hart" <srhartone@[no spam]yahoo.com> wrote in message
| > | > news:e4******** ******@TK2MSFTN GP11.phx.gbl...
| > | > | Does anyone know the standard code access permission to be able to
| > | > | manipulate a process using the Process class?
| > | > |
| > | > | Thanks
| > | > | Simon.
| > | > |
| > | > |
| > | >
| > | > Not sure what you mean with "code access permission", if you mean
| > | > "security
| > | > privileges" then you'll need "SeDebugPrivile ge".
| > | >
| > | > Willy.
| > | >
| > | >
| > |
| > |
| >
| >
|
|
Feb 3 '06 #6

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

Similar topics

1
1839
by: Michael Williams | last post by:
Hi, I am trying to understand the performance implications of running a number of separate ActiveXexe processes as opposed to a single ActiveXexe with multiple threads on a Windows 2000 server. I have been told that Windows does not allocate a fixed memory space to its processes, so they are always paged off to disk when inactive. However, all the threads in a single process operate within the same memory space, so are relatively...
10
1762
by: John | last post by:
Hi I am using ms internet control in my app. It works fine form all machines except from a new one which has win xp sp2 installed. All machines are part of a small business server 2003 domain so have the isa server firewall client as well. Unfortunately I can't find a way to disable xp firewall once it is connected to the domain. How do I get past the xp firewall for internet control to work? Thanks
6
3213
by: TIM | last post by:
for example i have one simple programm int main() { int test = NULL; while(1){ printf("%d\n",test); getch(); test++; }
192
9445
by: Vortex Soft | last post by:
http://www.junglecreatures.com/ Try it and tell me what's happenning in the Microsoft Corporation. Notes: VB, C# are CLS compliant
9
23067
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated to a pool. If I assign only one application to a applicaton pool and have multiple worker processes assigned to that pool. Will my application be processed by many worker processes?
4
1437
by: et | last post by:
I have an aspnet program that uses an Access database -- I won't go into why I'm using Access -- and can't get it to run in share mode. If I have opened the website, and I try to edit the database, I get a message saying the database is in read only because it's being used elsewhere. Even if I close the website, close the program, close everything I can think of, I still get the error. I always have to reboot. If I add Mode=Share...
18
3150
by: Joe Fallon | last post by:
I have some complex logic which is fairly simply to build up into a string. I needed a way to Eval this string and return a Boolean result. This code works fine to achieve that goal. My question is what happens to the dynamically created assembly when the method is done running? Does GC take care of it? Or is it stuck in RAM until the ASP.Net process is recycled? This code executes pretty frequently (maybe 4 times per transaction) and...
4
7824
by: AN | last post by:
Greetings, We make an ASP.NET web application and we host it for our customers. We have provisioned hardware and hope to be able to service around 200 customers on this hardware. The web servers are in a stateless farm and have 2 GB of RAM. We are using ASP.NET 1.1 when using a dedicated application pool for each virtual directory. Each customer gets their own virtual directory and copy of the ASP.NET dll in their bin folder, which...
7
2985
by: Joe | last post by:
If I'm using process.kill, I can only kill processes, which are created in the same login session. (I'm using win2000, I'm in the local admin group) Processes created by me in earlier logins or even processes of other accounts cannot be killed. I get exceptions, like "You have no permission...". I've tried to do the job in a console application and in a service running under my account (which is in the local admin group of win2000),...
0
8196
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8701
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8364
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6122
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1507
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.