Re: Minimun Request Permissions



since attributes are embedded at compile time you can only use constants. SystemDirectory is obviously not a constant.

not sure how to solve that.

maybe nicole knows.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Hello,

Im trying to set minimum fileIO permissions for my assembly like so:

[assembly: FileIOPermission(SecurityAction.RequestMinimum,
Write="C:\\")]

But, id like to make sure the write permission is on the
systemdirectory. But I cant do this:

[assembly: FileIOPermission(SecurityAction.RequestMinimum,
Write=Environment.SystemDirectory)]

Does anyone know how I CAN do it

Thanks in advance

Heinrich Breedt



.