Just Browsing Login

linux-kernel



Search Last Month
Search Last 6 Months
Search All Messages
Search Since this date:
linux-kernel Home
NNYTech.net
 Message #357529 of 357539 
Previous Message | Next message |  |
Date: 1970-01-01
From: Christoph Hellwig
Subject: Re: Require mmap handler for a.out executables
Click here for more on this subject

> diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c
> index f312103..5638acf 100644
> --- a/fs/binfmt_aout.c
> +++ b/fs/binfmt_aout.c
> -278,6 +278,9 static int load_aout_binary(struct linux
> return -ENOEXEC;
> }
>
> + if (!bprm->file->f_op || !bprm->file->f_op->mmap)
> + return -ENOEXEC;
> +

These checks need a big comment explanining why they are there, else people
will remove them again by accident.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
lt 2003
fe
ige
fitive
furative