From owner-freebsd-hackers Wed Oct 31 3:44:27 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from noos.fr (r178m112.cybercable.tm.fr [195.132.178.112]) by hub.freebsd.org (Postfix) with ESMTP id 55AF437B40B for ; Wed, 31 Oct 2001 03:44:23 -0800 (PST) Received: (from mux@localhost) by noos.fr (8.11.6/8.11.4) id f9VBiKI38137; Wed, 31 Oct 2001 12:44:20 +0100 (CET) (envelope-from mux) Date: Wed, 31 Oct 2001 12:44:20 +0100 From: Maxime Henrion To: hackers@freebsd.org Cc: "Nickolay A.Kritsky" Subject: Re: Changing syscalls numbers Message-ID: <20011031124420.A561@nebula.noos.fr> References: <1781939088.20011031142924@internethelp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1781939088.20011031142924@internethelp.ru> User-Agent: Mutt/1.3.23i 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 Nickolay A.Kritsky wrote: > Hi, freebsd-hackers. > > Recently I was trying to change some syscalls numbers (i.e. syscall > exit would have number 5 and syscall open would have number 1). > My thought was, that for that operation one must edit file > /usr/src/sys/kern/syscalls.master and remake world. I edited the file > named above, rebooted in single-user mode, and ran "make buildworld && > make buildkernel && make installkernel && make installworld". > Everything seems to be OK, new kernel has been built and installed (I > think it is `new', because /kernel has the creation date of "make > installkernel" and diff says it differs from /kernel.old ), but > mov eax,1 > push eax > int 80h > > still performs exit. > > Could you point me, what wrong assumptions/steps have I done? > Any help is very good. /usr/src/sys/kern/makesyscalls.sh syscalls.master Maxime -- Don't be fooled by cheap finnish imitations ; BSD is the One True Code To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message