Re: How to determine required privileges?
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 11 Sep 2006 20:00:46 -0500
For ACL-based stuff (files, registry, etc.), you can p/invoke the
AccessCheck or AzAccessCheck API calls, depending on if you have a logon
token for the user you want to check against. Unfortunately, there is no
built in .NET wrapper for these yet.
For network stuff, I'm not sure if there is a well-known API to determine
the network requirements of any given call. I think you kind of need to
know this stuff in advance.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"SC" <shmulik28@xxxxxxxxx> wrote in message
news:O9TVLQg1GHA.1336@xxxxxxxxxxxxxxxxxxxxxxx
OS permissions
"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:CE7B642A-838F-4BE8-89F0-589D2B5B1018@xxxxxxxxxxxxxxxx
Do you mean CAS permissions or operating system permissions? If the
former, what version of the .NET framework are you targeting?
"SC" <shmulik28@xxxxxxxxx> wrote in message
news:O8zT7kWzGHA.1536@xxxxxxxxxxxxxxxxxxxxxxx
When writing applications, how can I determine the minimum required
privileges necessary for an operation to run?
For instance, say my application needs rights to write/read to the
registry, or I want to block some ports - how do I go about finding out
what the minimum privileges required are? Is there a documentation
somewhere that says "function X requires privilege leve Y"?
Thanks!
.
- References:
- How to determine required privileges?
- From: SC
- Re: How to determine required privileges?
- From: Nicole Calinoiu
- Re: How to determine required privileges?
- From: SC
- How to determine required privileges?
- Prev by Date: Re: How to determine required privileges?
- Next by Date: Re: SecurityExcepion inside DLL linked in an HTML tag OBJECT
- Previous by thread: Re: How to determine required privileges?
- Next by thread: Re: How to determine required privileges?
- Index(es):
Relevant Pages
|