|
|
||||||
|
#1
|
|
|
|
|
Does anyone know the standard code access permission to be able to
manipulate a process using the Process class? Thanks Simon. |
|
|
|
#2
|
|
|
|
|
"Simon Hart" <srhartone> wrote in message
news:1032 | 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 "SeDebugPrivilege". Willy. |
|
#3
|
|
|
|
|
I want to request a permission using declarative permissions in my assembly
to grant permission to shut down processes. Namespace: System.Security.CodeAccessPermission. I don't want to have to write my own. Don't know what "SeDebugPrivilege" is? "Willy Denoyette [MVP]" <willy.denoyette> wrote in message news:3352 [..] |
|
#4
|
|
|
|
|
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. "SeDebugPrivilege" 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> wrote in message news:3876 |I want to request a permission using declarative permissions in my assembly | to grant permission to shut down processes. Namespace: | System.Security.CodeAccessPermission. I don't want to have to write my own. | | Don't know what "SeDebugPrivilege" is? | | "Willy Denoyette [MVP]" <willy.denoyette> wrote in message | news:3352 | > | > "Simon Hart" <srhartone> wrote in message | > news:1032 | > | 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 "SeDebugPrivilege". | > | > Willy. | > | > | | |
|
#5
|
|
|
|
|
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 WindowsPrincipal 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]" <willy.denoyette> wrote in message news:2184 [..] |
|
#6
|
|
|
|
|
Weird, SYSTEM should have this privilege, are you sure the service runs as
"localsystem", on W2K3 services run by default as 'local service" which has no such privilege. Willy. "Simon Hart" <srhartone> wrote in message news:3944 | 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 WindowsPrincipal 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]" <willy.denoyette> wrote in message | news:2184 | > 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. | > | > "SeDebugPrivilege" 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> wrote in message | > news:3876 | > |I want to request a permission using declarative permissions in my | > assembly | > | to grant permission to shut down processes. Namespace: | > | System.Security.CodeAccessPermission. I don't want to have to write my | > own. | > | | > | Don't know what "SeDebugPrivilege" is? | > | | > | "Willy Denoyette [MVP]" <willy.denoyette> wrote in message | > | news:3352 | > | > | > | > "Simon Hart" <srhartone> wrote in message | > | > news:1032 | > | > | 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 "SeDebugPrivilege". | > | > | > | > Willy. | > | > | > | > | > | | > | | > | > | | |
|
|
| Similar Threads | |
| Running MS Access From Excel VBA: Communication Between Processes? Excel spreadsheet has an "Import" button. Clicking it creates an instance of MS Access through which we open up a .MDB and pull some strings that causes the .MDB to munch on... |
|
| Allow non-Admin users access to view running processes Hello all. I've been using the scripts found on this page: [..] They work fine for me, an Admin on the (Windows 2003) servers in question. What I'd like to be able to do... |
|
| Automation - running code in one Access DB from another Access DB I want to run some code in a db from another DB. The code seems to run OK but I am left with an invisible instance of Access in my Windows Task Manager. I don't seem to be... |
|
| Design question for memory access by processes I have 4 C programs that I have written that access reference files very frequently. These reference files essentially are ordered records in a simple ascii structure. The... |
|
| Permission errors running ASPs on Access db on network I'm trying to link my FP2000 web site to an Access db on a network drive. Additionally, my Access db has tables linked to our accounting system (i.e. MAS90). FP2000... |
|
|
All times are GMT. The time now is 11:41 AM. | Privacy Policy
|