> when the kernel loads an ELF binary, it will also load its interpreter.
> The kernel checks the rights of the interpreter, that way:
> 
>       if ((error = VOP_ACCESS(vp, VREAD, p->p_ucred, p)) != 0)
>               goto bad1;
> 
> It should check with VEXEC instead of VREAD. Interpreters get executed,
> so they have to be executable; a read-only interpreter shouldn't be
> loaded by the kernel.

I am not sure I agree on this.

Reply via email to