Groups | Blog | Home
all groups > dotnet security > june 2006 >

dotnet security : permission for socket access


Rain
6/21/2006 9:09:02 PM
Hi, i only need to make the scoket access unrestricted and nothing else. How
do i do this in an xml which i will be using in adding a permission set using
caspol?

<PermissionSet class="System.Security.NamedPermissionSet" version="1">
<Permission class="System.Net.SocketPermissionAttribute, mscorlib,
Ver=2000.14.1812.10, SN=03689116d3a4ae33" version="1">
<Unrestricted />
</Permission>
</PermissionSet>

This is my sample code but it doesnt work, it tells me that
System.Net.SocketPermissionAttribute is not valid. PLease, i need help.
Anyhelkp would be appreciated. Thank you so much in advance.
Dominick Baier [DevelopMentor]
6/21/2006 9:57:41 PM
oops. SocketPermission (note to self: coffee first)

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

[quoted text, click to view]

Dominick Baier [DevelopMentor]
6/22/2006 4:53:28 AM
You can construct a NamedPermissionSet and a SocketException in code - and
afterwards call ToXml() on the permission set to get the xml representation.

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

[quoted text, click to view]

AddThis Social Bookmark Button