lkml.org 
[lkml]   [1998]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: pre-2.1.90.. (kmod fix)
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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.096 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site