From owner-cvs-all Mon Jun 21 18: 1: 5 1999 Delivered-To: cvs-all@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 05EAA14C27; Mon, 21 Jun 1999 18:00:59 -0700 (PDT) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id VAA56307; Mon, 21 Jun 1999 21:00:47 -0400 (EDT) Date: Mon, 21 Jun 1999 21:00:46 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Peter Wemm Cc: Jean-Marc Zucconi , hoek@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern imgact_gzip.c In-Reply-To: <19990621231649.336E375@overcee.netplex.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Tue, 22 Jun 1999, Peter Wemm wrote: > Jean-Marc Zucconi wrote: > > >>>>> Tim Vanderhoek writes: > > > > > hoek 1999/06/21 09:23:15 PDT > > > Modified files: > > > sys/kern imgact_gzip.c > > > Log: > > > Correctly return ENOEXEC for really short zipped files. The way this is > > > done is less-than cute, but this whole file is suffering from some amoun > t > > > of bitrot. Execution of zipped files should probably be implemented in > a > > > manner similar to that of #!/interpreted files. > > > > Do this mean that it should be possible to run gzip'ed executables??? I > > though it was not possible with ELF binaries. Even after this commit I > > am unable to do it: > > $ cp /bin/ls . > > $ gzip ls > > $ ./ls.gz > > bash: ./ls.gz: cannot execute binary file > > Output=32 Inflate_error=1 igz.error=8 error2=0 where=180 > > No, imgact_gzip has it's own a.out executable decoder hardwired into it and > this can't be easily changed to support ELF without a LOT of work. I half > wonder if it might be better to gzip -d the executable stream into some > sort of anon backed vnode and then pass that back into the exec system. That > way it would work for any supported format etc. Or just use gzexe. > > Cheers, > -Peter > Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message