Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 May 2001 20:06:59 -0500
From:      Mike Meyer <mwm@mired.org>
To:        rootx11@xfreek.mindriot.net
Cc:        questions@freebsd.org
Subject:   Re: kernel hacking
Message-ID:  <15111.6323.646191.299972@guru.mired.org>
In-Reply-To: <111460508@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

	<mike
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15111.6323.646191.299972>