Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / April 2008

Tip: Looking for answers? Try searching our database.

java security: protection domain

Thread view: 
czp.opensource@gmail.com - 03 Apr 2008 05:36 GMT
hi all
   i asked this yesterday, but there is no one answer me. i thought
maybe i hadn't discripted clear.  here is the question:  there is a
directory /root/user/aaa/bbb directory, and i give the directory
FilePermission ("/root/user/aaa/bbb", "read,write"); permission. does
that means the application can read and write in the subdirectory(/
root/user/aaa/bbb/ccc/touch.c).

thanks

best wish

Allen
RedGrittyBrick - 03 Apr 2008 10:03 GMT
> hi all
>     i asked this yesterday,

It would be better to have made your second posting a reply to the
first. Now you have fragmented any answers you get.

> but there is no one answer me. i thought
> maybe i hadn't discripted clear.  

I didn't answer because I didn't understand your question.

> here is the question:  there is a
> directory /root/user/aaa/bbb directory, and i give the directory
> FilePermission ("/root/user/aaa/bbb", "read,write"); permission.

Do you mean java.io.FilePermission?

Do you refer to Java code running as an Applet or otherwise under a
Security Manager?

> does
> that means the application can read and write in the subdirectory(/
> root/user/aaa/bbb/ccc/touch.c).

"A permission object represents, but does not grant access to, a system
resource." - API documentation for java.io.FilePermission

I expect that if you explain more carefully what you are trying to
achieve, or provide a sample program, someone more knowledgeable will be
able to answer your question.

Signature

RGB



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.