RE: [PATCH] Handle non-readable binfmt_misc executables

From: Zach, Yoav
Date: Sun Jun 20 2004 - 05:43:25 EST


I'm not sure I understand the problem. Load_elf_binary also
uses sys_close for recovery in case of error. Can you please
give me more details on the problems you see with using sys_close ?

Thanks,
Yoav.

Yoav Zach
IA-32 Execution Layer
Performance Tools Lab
Intel Corp.


>-----Original Message-----
>From: Arjan van de Ven [mailto:arjanv@xxxxxxxxxx]
>Sent: Saturday, June 19, 2004 17:39
>To: Linux Kernel Mailing List
>Cc: Zach, Yoav; torvalds@xxxxxxxx
>Subject: Re: [PATCH] Handle non-readable binfmt_misc executables
>
>
>> +_error_close_file:
>> + if (fd_binary > 0) {
>> + sys_close (fd_binary);
>> + fd_binary = -1;
>> + bprm->file = NULL;
>> +
>
>
>ewww sys_close.... there HAS to be a better way to do that...
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/