Re: Meaning/consequences of Unrestricted=true

From: Keith Patrick (richard_keith_patrick_at_hotmail.com)
Date: 08/26/03


Date: Tue, 26 Aug 2003 10:27:44 -0500


I can't get a stack trace, actually, as the exception comes up as soon as I
run the service. Can't step into code, either (guess it fails at
load-time). The only thing I was able to get in my output window was the
permission set.

"Ivan Medvedev [MS]" <ivanmed@online.microsoft.com> wrote in message
news:OwcEIG%23aDHA.2668@TK2MSFTNGP09.phx.gbl...
> Keith -
> what is the exception's stack trace and message?
> Unrestricted=false means basically that you are not refusing anything.
> --Ivan
> This message is provided "AS IS" with no warranties, and confers no
rights.
>
> "Keith Patrick" <richard_keith_patrick@nospamhotmail.com> wrote in message
> news:%23gcdMq3aDHA.132@tk2msftngp13.phx.gbl...
> > I've asked this before, but I still can't figure out what is going on.
> > Basically, I have a Windows Service that I'm trying to lock down. Just
as
> > an experiment, I tried to apply the following attributes:
> > [assembly:AllowPartiallyTrustedCallers()]
> >
> > [assembly:FileDialogPermissionAttribute(SecurityAction.RequestRefuse,
> > Unrestricted = true)]
> >
> >
> > While that has no adverse affects on a console app, I get a
> > SecurityException in my service. When I set Unrestricted to false, it
> works
> > fine, but I can't fathom why. My service definitely does not use file
> > dialogs, so the thing shouldn't have a problem. Could someone explain
to
> me
> > why services don't like unrestricted permissions (every one I've tried
has
> > this problem)? Also, if I set it to false for this permission, what
> exactly
> > does that mean?
> >
> >
>
>



Relevant Pages

  • Re: kldunload DIAGNOSTIC idea...
    ... >>You mean any thread with a stack trace that includes an instruction ... fails to allocate memory, the best course of action we have right ... worthwhile to see if some of those panics could be converted into ...
    (freebsd-arch)
  • RE: usb filter driver
    ... but retail build fails in both Win Me and win 98 ... >>> How do a get stack trace for it in SoftICE as I am also unable ... > I'm not familiar with SoftIce, so I'm not sure how you would get a stack ...
    (microsoft.public.development.device.drivers)
  • Re: Faillure to run .NET 2.0 app from UNC
    ... Based on the stack trace, it fails at the beginning ... have permission writing to that shared folder? ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework)