| Date | Tue, 14 Dec 2010 17:05:02 +0100 | From | Oleg Nesterov <> | Subject | Re: [Patch 12/21] Check if the process is an ELF executable |
| |
On 12/14, Suzuki K. Poulose wrote: > > + */ > +static int get_elf_class(struct task_struct *task) > +{ > + struct elfhdr hdr; > + int ret = 0; > + > + ret = kernel_read(task->mm->exe_file, 0, (char*)&hdr, sizeof(hdr));
->exe_file can be NULL.
Oleg.
|