public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: RO binaries - binfmt_misc, linux-2.6.0-test3
@ 2003-08-14  9:02 Zach, Yoav
  2003-08-14  9:25 ` Muli Ben-Yehuda
  0 siblings, 1 reply; 3+ messages in thread
From: Zach, Yoav @ 2003-08-14  9:02 UTC (permalink / raw)
  To: linux-kernel; +Cc: Sharma, Arun, Mallick, Asit K

[-- Attachment #1: Type: text/plain, Size: 715 bytes --]

The proposed patch solves a problem for interpreters that need to
execute a non-readable file, which cannot be read in userland. To handle
such cases the interpreter must have the kernel load the binary on its
behalf. The proposed patch handles this case by telling binfmt_misc, by
a special flag in the registration string, to open the binary for
reading and pass its descriptor as argv[1], instead of passing the
binary's path. Old behavior of binfmt_misc is kept for interpreters
which do not specify this special flag.

The patch is against linux-2.6.0-test3

========================================================================
=============
Yoav Zach
Performance Tools Lab
Intel Corp.



[-- Attachment #2: 2.4.binfmt_misc_open_binary.ZIP --]
[-- Type: application/x-zip-compressed, Size: 1029 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH]: RO binaries - binfmt_misc, linux-2.6.0-test3
  2003-08-14  9:02 [PATCH]: RO binaries - binfmt_misc, linux-2.6.0-test3 Zach, Yoav
@ 2003-08-14  9:25 ` Muli Ben-Yehuda
  0 siblings, 0 replies; 3+ messages in thread
From: Muli Ben-Yehuda @ 2003-08-14  9:25 UTC (permalink / raw)
  To: Zach, Yoav; +Cc: linux-kernel, Sharma, Arun, Mallick, Asit K

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

On Thu, Aug 14, 2003 at 12:02:44PM +0300, Zach, Yoav wrote:
> The proposed patch solves a problem for interpreters that need to
> execute a non-readable file, which cannot be read in userland. To handle
> such cases the interpreter must have the kernel load the binary on its
> behalf. 

In what scenarios does this occur? 

> The patch is against linux-2.6.0-test3

Please send patches as inline text, unless they're really big. Thank
you. 
-- 
Muli Ben-Yehuda
http://www.mulix.org


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH]: RO binaries - binfmt_misc, linux-2.6.0-test3
@ 2003-08-14 10:45 Zach, Yoav
  0 siblings, 0 replies; 3+ messages in thread
From: Zach, Yoav @ 2003-08-14 10:45 UTC (permalink / raw)
  To: Muli Ben-Yehuda
  Cc: linux-kernel, Sharma, Arun, Mallick, Asit K, Goldenberg, Shalom,
	Zemach, Yigal

We are running IA-32 binaries on IPF machines using a SW translator.
We have problems with binaries that are non-readable ( it's 
execute-only not read-only. sorry for the misleading subject line )
that reside on an NFS drive. There is no way for the translator
to load these files, even if it had root permissions, because these
permissions are squashed on the remote drive; so giving the translator
setuid/root permissions does not work.

Thanks,
Yoav.

> -----Original Message-----
> From: Muli Ben-Yehuda [mailto:mulix@mulix.org] 
> Sent: Thursday, August 14, 2003 12:26
> To: Zach, Yoav
> Cc: linux-kernel@vger.kernel.org; Sharma, Arun; Mallick, Asit K
> Subject: Re: [PATCH]: RO binaries - binfmt_misc, linux-2.6.0-test3
> 
> 
> On Thu, Aug 14, 2003 at 12:02:44PM +0300, Zach, Yoav wrote:
> > The proposed patch solves a problem for interpreters that need to
> > execute a non-readable file, which cannot be read in 
> userland. To handle
> > such cases the interpreter must have the kernel load the 
> binary on its
> > behalf. 
> 
> In what scenarios does this occur? 
> 
> > The patch is against linux-2.6.0-test3
> 
> Please send patches as inline text, unless they're really big. Thank
> you. 
> -- 
> Muli Ben-Yehuda
> http://www.mulix.org
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-08-14 10:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-14  9:02 [PATCH]: RO binaries - binfmt_misc, linux-2.6.0-test3 Zach, Yoav
2003-08-14  9:25 ` Muli Ben-Yehuda
  -- strict thread matches above, loose matches on Subject: below --
2003-08-14 10:45 Zach, Yoav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox