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

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.
Consider:

/tmp/foo:
#!/tmp/bar
# Nothing interesting

/tmp/bar:
#!/tmp/foo
# Just a placeholder

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

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. :)

-Larry


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