Re: pre-2.1.90.. (kmod fix)

Itai Nahshon (nahshon@actcom.co.il)
Sat, 14 Mar 1998 02:15:14 +0200


Kirk Petersen wrote:
>
> request_module() works just fine (after learning about the
> __WCLONE option, that is). The problem is with the execve(). It just
> doesn't happen. Unfortunatly, I didn't get a chance to test the return
> value or anything.
> Any ideas?
>
I tried something almost similar myself... and failed in the same way.
The new process (not thread!) must setuid to root before
it can load any module (otherwise it will run under the permissions of
the poor user just tried to use a device).
This does not explain why it could not execve (I have modprobe installed
with mode 0755).

The file include/asm-i386/unistd.h has some hints of what might go
wrong...
If I understood it right then the fork+exec must be in a kernel thread
which never did an exec before.

Itai

-- 
Itai Nahshon   nahshon@actcom.co.il
        Also   nahshon@vnet.ibm.com

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu