> ...
>> Is it somehow possible to deny access for one application
>> to a specific resource whereas allow access for the rest
>> within one policy?
>
> Did you ask a question related to security recently?
> > ...
> >> Is it somehow possible to deny access for one application
[quoted text clipped - 4 lines]
>
> Yes two days ago, on this newsgroup.
Please don't split threads - it would have made
more sense to add a follow-up to the earlier
question.
> > This post reminds me of it, since it asks a question
> > that itself raises many more questions.
[quoted text clipped - 8 lines]
>
> I have a homework to do ..
Ahh.. That explains a lot of why this exercise sounds
quite 'arbitrary'.
>.. i.e. writing a small project
> in which I need to use some of security features,
> but not sure if I understand them correctly.
>
> I believe that explanation of the question is pretty clear,
> if not please let me know which part is not clear?
I'm clear now.
Arne asked you a very relevant question on the
tail of the first thread. I was waiting to hear
what you'd say, before launhcing into this matter.
I initially thought that a strategy you might look
into would be to launch the project as a sandboxed
applet (or *from* an applet), or web start project.
They both provide a 'default' security environment
that prevents file access (OK - JWS has ways to
get around that limitation - but only if we code them).
OTOH - I do not think either of these solutions
satisfies the basic requirement to assign 'fine grained'
control over what the user can and cannot do.
You might purszue the strategy of getting policy
files to work as you want, but I don't mess with
those usually - instead I would look into this
little 'hack' to achieve what is required.
<http://groups.google.com.au/group/comp.lang.java.programmer/msg/
f29ab45389d9f5f2>
That one deals with calling System.exit(), but
should be trivial to change for file access.
--
Andrew T.
PhySci.org
Marcin Kasprzak - 11 Mar 2008 21:21 GMT
> Please don't split threads - it would have made
> more sense to add a follow-up to the earlier
> question.
ok, I'm not going do it again.
[..]
> Arne asked you a very relevant question on the
> tail of the first thread. I was waiting to hear
[quoted text clipped - 20 lines]
> That one deals with calling System.exit(), but
> should be trivial to change for file access.
Huh;-) Your explanation is far too complicated to me,
and not sure how it's related to my policy question.
But thanks you very much for your time, I appreciate that.
Regards,

Signature
Marcin Kasprzak