Re: Executing binaries on new filesystem

From: Eric W. Biederman (ebiederm@xmission.com)
Date: Mon Nov 19 2001 - 22:39:33 EST


Rock Gordon <rockgordon@yahoo.com> writes:

> All said and done, the file is with correct
> permissions (for that matter any binary that I execute
> on my filesystem has correct permissions). The only
> thing strace tells me is "bad file format". The same
> binary works perfectly elsewhere.
>
> I don't think mmap is the problem; you don't need it
> in order to run binaries ...

Yes you do. Look at all of the calls to do_mmap in binfmt_elf,
binfmt_aout and others. The only case that doesn't use mmap
is old a.out binaries that are not properly aligned so cannot be
mmaped.

Linux implements demand paging in the loading of binaries and
for that you need mmap.

Eric

-
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/



This archive was generated by hypermail 2b29 : Fri Nov 23 2001 - 21:00:22 EST