• Post Reply Bookmark Topic Watch Topic
  • New Topic

Permssion added for write but still read access to file  RSS feed

 
VGupta Gupta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Evyone,

If i add a permission through a policy file like

permission java.io.FilePermsiion "/home/a.txt" "write"

and then try to read the file from the app, even that is allowed

Can someone please help me out.

The effect of this is that my app can even read from the file mentioned above in the permission, but i want to restrict that.

Regards
Vipul
[ March 27, 2005: Message edited by: VGupta Gupta ]
 
Kareem Qureshi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think when you give write access internally it needs to read so the read access is given by default if you have write.

Hope this helps.
Thanks
Kareem
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!