Re: gzipped executables

Pavel Machek (pavel@suse.cz)
Wed, 14 Feb 2001 20:22:20 +0100


Hi!

> Is there any kernel patch that would allow Linux to properly recognize,
> and execute gzipped executables?
>
> I know I could use binfmt_misc to run a wrapper script:
>
> decompress to /tmp/prog.decompressed
> execute /tmp/prog.decompressed
> rm /tmp/prog.decompressed
>
> But that's not as clean, secure, or fast as the kernel transparently
> decompressing & executing. Is there a better way to do this?

You could do this with uservfs(.sourceforge.net):

ln -s /overlay/path/.../executable.gz#ugz executable

and let uservfs do it for you. It will essentially do what you
described, but it will work on any file.
Pavel

-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/