In <[EMAIL PROTECTED]>, Sebastian 'lunar' Wiesner wrote:

> Gabriel Genellina <[EMAIL PROTECTED]> schrieb
>> A similar function exists on Linux too. But even if a file has the
>> right file format, if it does not have the execute bit set, won't run.
>> And you could set that bit on a JPG image too - and nothing good would
>> happen, I presume. 
> 
> Really? I don't think so. Afaik on Linux executable binary files need an
> ELF header.

There are other executable loaders for `a.out` and `COFF` in the kernel,
and with the `binfmt_misc` module you can make anything with a "magic"
header executable, including Python scripts/bytecode and even JPEG images.

  http://www.tat.physik.uni-tuebingen.de/~rguenth/linux/binfmt_misc.html

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to