Permission: java.util.PropertyPermission dnsjava.options read not granted to org.xbill.DNS.Options

Project:JNode Core
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

As I experiment with Jnode, I have run into a situtation where every application I try to run on Jnode is killed by the SecurityManager for some reason. However, these programs all run in other JVMs on other OSes without modification.

So, I wrapped checkPermission with a try-catch to see what was happening.

OS: Jnode 0.2.6-dev (svn r3688 from trunk)
Exception: java.util.PropertyPermission dnsjava.options read not granted to org.xbill.DNS.Options
Action taken at time of Exception: resolver add
Repeatability: 100%

I am submitting these as bugs so they can be fixed in the tree sooner.
I will try fixing my local copy by hand according to the notes at http://www.jnode.org/node/156

#1

I added a PropertyPermission and resolved this.

Here's a patch:
--- org.xbill.dns.xml-dist 2008-01-10 09:16:23.000000000 -0600
+++ org.xbill.dns.xml 2008-01-10 09:32:17.000000000 -0600
@@ -22,6 +22,7 @@

+

#2

#3

I think I've fixed this one. Can you verify it with the latest version?

#4

When I start networking, I do not see the xbill permission message on my test box anymore.

#5

One down, one to go, it seems:

I get no permission notices when I bring up the interface and add resolvers.

When I ping 'www.clusty.com', I do see:

Jnode /> ping www.clusty.com
EIP>>> Permission "(java.util.PropertyPermission dnsjava.options read)" not granted due to org.xbill.DNS.Options
DEBUG [ARPNetworkLayer]: getHardwareAddress(10.0.0.1, 10.0.0.2, eth-pci(0,18,0), 5000)
Ping 207.97.211.30 attemp 0
DEBUG [ARPNetworkLayer]: getHardwareAddress(10.0.0.1, 10.0.0.2, eth-pci(0,18,0), 5000)
Reply from 207.97.211.30: 0bytes of data ttl=111 seq=0 time=166ms
Ping 207.97.211.30 attemp 1
DEBUG [ARPNetworkLayer]: getHardwareAddress(10.0.0.1, 10.0.0.2, eth-pci(0,18,0), 5000)
Reply from 207.97.211.30: 0bytes of data ttl=111 seq=1 time=114ms
Ping 207.97.211.30 attemp 2
DEBUG [ARPNetworkLayer]: getHardwareAddress(10.0.0.1, 10.0.0.2, eth-pci(0,18,0), 5000)
Reply from 207.97.211.30: 0bytes of data ttl=111 seq=2 time=131ms
Ping 207.97.211.30 attemp 3
DEBUG [ARPNetworkLayer]: getHardwareAddress(10.0.0.1, 10.0.0.2, eth-pci(0,18,0), 5000)
Reply from 207.97.211.30: 0bytes of data ttl=111 seq=3 time=139ms
-> Packet statistics
4 packets transmitted, 4 packets received
round-trip min/avg/max = 114/137.0/166 ms