Messages in this thread | | | Subject | RE: [PATCH] Handle non-readable binfmt_misc executables | Date | Sun, 20 Jun 2004 13:41:30 +0300 | From | "Zach, Yoav" <> |
| |
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@redhat.com] >Sent: Saturday, June 19, 2004 17:39 >To: Linux Kernel Mailing List >Cc: Zach, Yoav; torvalds@osdl.org >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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |