[lkml]   [1996]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Java in OS?

Matthias Urlichs writes:

-> /tmp/foo:
-> #!/bin/sh
-> echo "Did it"
-> /tmp/bar:
-> #!/tmp/foo
-> # nothing interesting
-> % chmod +x /tmp/foo /tmp/bar
-> % /tmp/bar
-> bash: ./bar: Permission denied
-> %

...and throw the kernel into a nasty denial of service attack.

# Nothing interesting

# Just a placeholder

... and the kernel runs /tmp/bar to interpret /tmp/foo which calls

To prevent loops like this you need yet more and more code, to be able
to safely recurse these interpretors, and what yuo gain is basically
zilch. In short, there's probably good reason for that. :)


 \ /
  Last update: 2005-03-22 13:37    [W:0.086 / U:2.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site