Re: Meaning/consequences of Unrestricted=true

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


Date: Wed, 27 Aug 2003 10:06:09 -0500


OK, after digging a bit, I found that for some strange (at least to me)
reason, ServiceProcess references System.Windows.Forms (why a service
inherently has a link to UI stuff is beyond me; services really should not
interact with the desktop directly). For that reason, I suspect that the
unrestricted thing blows up. If instead I say "Open=false, Save=false", it
runs fine. Of course, this leads to another issue: if Open/Save are the
only properties you can set on that permission, how does it differ from
saying Unrestricted=true?

"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: For Australia
    ... give permission for the other person to react with violence. ... If you cross the line of civility, I will take it as leave for me to ... All I'm saying is that noone has the right to treat you like shit. ... Been clocked in the back of the noggin for no reason. ...
    (rec.martial-arts)
  • RE: permission
    ... the reason why this ... If the webmaster is testing a application ... CyberBase7 Security Services METRO-SOC ... I told him that by doing so, most subfolders will also take that permission, ...
    (Security-Basics)
  • Re: Newbee & Online Photo Legalities Question
    ... for the advertising because that requires permission. ... You can sell anyone a picture of a ... premises gives permission to use your image. ... effect for a different reason. ...
    (alt.photography)
  • Re: Hey Matt! OT: not dogs...
    ... reason I hate it is just for the reason you stated. ... me if I "really" want to start the program, and do I have permission to do ... big to play on my aging laptop. ... on the Vista machine was such a nightmare that I damn near kicked the thing ...
    (rec.pets.dogs.behavior)
  • W2K strange file permission problem
    ... As strange as it may sound, I can assign me with any imaginable ... Neither me nor my admin has any clue as to the reason why the files ... and I've added it every possible permission on ...
    (microsoft.public.win2000.networking)