From owner-freebsd-questions Sat May 19 18: 7: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 36B9637B42C for ; Sat, 19 May 2001 18:07:00 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 28289 invoked by uid 100); 20 May 2001 01:06:59 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15111.6323.646191.299972@guru.mired.org> Date: Sat, 19 May 2001 20:06:59 -0500 To: rootx11@xfreek.mindriot.net Cc: questions@freebsd.org Subject: Re: kernel hacking In-Reply-To: <111460508@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG rootx11@xfreek.mindriot.net types: > i am trying to hack at the kernel so that, unless you are in the group wheel you cannot run some functions, such as fork(). In the kernel, how do I check the gid? rootx11@xfreek.mindriot.net types: > I was wondering more on how to check uid's and gid's in those kinds of functions than actually limiting fork(). How do you setup a login class like that anyway? Please start inserting newlines into your text - it makes the text easier to deal with for people who's mailers follow the RFCs. Read through src/sys/kern/kern_prot.c for examples of finding and manipulating these things. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message