From owner-freebsd-hackers Wed Jan 30 16:26: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id DFFAE37B4C2 for ; Wed, 30 Jan 2002 16:25:04 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id A249310DDFB; Wed, 30 Jan 2002 16:25:04 -0800 (PST) Date: Wed, 30 Jan 2002 16:25:04 -0800 From: Alfred Perlstein To: Julian Elischer Cc: Jonathan BENSAMOUN , hackers@freebsd.org Subject: Re: kernel fork & execve Message-ID: <20020130162504.R13686@elvis.mu.org> References: <000d01c1a9e7$3b75cd00$0100a8c0@johnport> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from julian@elischer.org on Wed, Jan 30, 2002 at 03:44:51PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Julian Elischer [020130 16:09] wrote: > check where init is called from.. Y'know, exec call could be made into a "do_exec", all that seems to matter is whether or not uap->fname is UIO_USERSPACE or UIO_SYSSPACE. > On Thu, 31 Jan 2002, Jonathan BENSAMOUN wrote: > > > Hi, > > I would like to add a new syscall in my kernel which execute an execve in a > > forked process. > > I call the fork1 function and hook inside it to execute my execve. > > > > Has anyone an example of calling execve from kernel ? > > I have some problem to pass the arguments ... > > > > Thanks > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message