IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Yes, that what I have in mind now
And, while I am at it, chown and chgrp. An may be directory masks. What the hell, I'll just package a shell script in the JAR, and execute it.

I wish I was kiding. :(
--


- I was involuntarily self-promoted into management.

[link|http://kerneltrap.org/node/4484|Richard Stallman]

New Wasn't that
I checked file permissions. This was a Tomcat secrurity policy, designed to protect the JVM from idiot (or malicious) code. The (basically sound) idea is to prohibit all filesystem access, and open it up on a per-file, per-servlet basis. For this devel box, I'm just going to open it to all servlets, because mine will be the only ones on it.

As Ben mentioned above (below?) keeping each JVM isolated in a hosting situation is not feasible. Makes me question how useful the Java security model really is.
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New You're talking about JVM's access to external files
I am talking about world's access to the files JVM creates. Java has no concept of OS permissons.
--


- I was involuntarily self-promoted into management.

[link|http://kerneltrap.org/node/4484|Richard Stallman]

New You're only now starting to wonder?
Incidentally security is not an all or nothing pancea. I personally find Java's security model to be far less useful than Perl's taint mode - I'm seldom dealing with untrusted code and often dealing with untrusted data.

And, as I've mentioned before, I'd be curious to see how well a capability-based system would work for some of this. Particularly in a shared hosting environment where it would allow a lot of virtual sandboxing with no effort.

Cheers,
Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
     How do I control file access in Java? - (drewk) - (14)
         What user is Tomcat running as? - (admin) - (8)
             Running as tomcat4 -NT - (drewk) - (7)
                 Re: Running as tomcat4 - (admin) - (6)
                     I chmod-ed 777 to make sure - (drewk) - (5)
                         What is this "policytool" of which you speak? - (admin) - (4)
                             Trying now -- cool, seems to work[1] - (drewk) - (3)
                                 If it's your server... - (admin) - (2)
                                     That's what the java secutiry docs said - (drewk) - (1)
                                         If you were doing hosting, you'd go broke - (ben_tilly)
         System.exec("chmod " + options + " " + filename)? -NT - (tuberculosis) - (4)
             Yes, that what I have in mind now - (Arkadiy) - (3)
                 Wasn't that - (drewk) - (2)
                     You're talking about JVM's access to external files - (Arkadiy)
                     You're only now starting to wonder? - (ben_tilly)

Weapon of choice.
162 ms