Hi Karl, You are right. With another permission it works.

I created another bundle "p1-evil-fs". The /Activator/ of this bundle lists
all files in current directory. I changed the rule in "security.policy" as
follows:

/
DENY {
  [com.p1.check.MyCheck]
  ( java.io.FilePermission "-" "read" )
} "MyCheck"
/

(MyCheck changed to also work for the p1-evil-fs)

For me this worked the same with both java7 and java8. I have attached all
code. 
So I guess this is an issue with /SocketPermission/?

felix-framework-5.zip
<http://apache-felix.18485.x6.nabble.com/file/n5016171/felix-framework-5.zip>  
p1.zip <http://apache-felix.18485.x6.nabble.com/file/n5016171/p1.zip>  



--
View this message in context: 
http://apache-felix.18485.x6.nabble.com/Security-Conditions-not-working-on-Java-1-8-tp5016167p5016171.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to