kernel hack
does anybody know what is the best way to start kernel hack. Any references to any web page would be appreciated __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kernel hack
On Sun, Sep 25, 2005 at 03:31:51AM -0700, kamal kc wrote: does anybody know what is the best way to start kernel hack. It isn't quite clear what you mean, but presuming you mean make a change to the FreeBSD kernel that you use then: 1) First learn how to recompile your kernel. You can get details from the FreeBSD handbook (http://www.freebsd.org/handbook/). 2) Look under /usr/src/sys for the kernel source code. The main bit is in /usr/src/sys/kern, networking lives under /usr/src/sys/net* and so on. 3) Change the code you want and then recompie the kernel. Remember to keep an old kernel around incase you make a mistake. David. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kernel hack
Sorry, this went to -current by accident, but should have gone here... - Forwarded message from Stefan Sperling [EMAIL PROTECTED] - Date: Sun, 25 Sep 2005 18:35:53 +0200 From: Stefan Sperling [EMAIL PROTECTED] To: kamal kc [EMAIL PROTECTED] Cc: freebsd-current@freebsd.org Subject: Re: kernel hack On Sun, Sep 25, 2005 at 03:31:51AM -0700, kamal kc wrote: does anybody know what is the best way to start kernel hack. IMHO, the best way to start kernel hacking is to invest an awful lot of time into reading books. I presume you know C _really_ well already :) And by really well I also mean you know what is wrong about C! Any modern book on writing device drivers should be a good starting point. It does not really matter which UNIX-derivative the book is about. Hint: There are a lot of these books about Linux. Read programmer's datasheets, preferably for devices you own, and learn how to talk to registers from C. ftp.alsa-project.org has datasheets for sound cards, for example. Make sure you also learn about multi-threading (mutexes, semaphores etc). A lot of kernels are multi-threaded these days. A very good overview of the FreeBSD kernel is given in The Design and Implementation of the FreeBSD Operating System, by Mr. McKusick and Mr. Neville-Neil. Read all of it. Having learned about drivers and multi-threading beforehand helps a lot. Any references to any web page would be appreciated Get books, it's worth it! You really don't want to read this much material on your monitor! (Unless you have a 28 TFT of course ;). Plus books are often much better written, easier to understand, and a lot more detailed than tutorials on the web. http://www.NetBSD.org/Documentation also has an interesting kernel section to get you started before your books arrive :) -- stefan http://stsp.in-berlin.de PGP Key: 0xF59D25F0 - End forwarded message - -- stefan http://stsp.in-berlin.de PGP Key: 0xF59D25F0 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
kernel-hack ??
Hi, i just want to know is there a patch on freebsd that can limit the ps aux -- and only show the current user's process and not the whole system process. like, what the openwall linux patch did.. http://www.openwall.com/linux/ thank you.. louie miranda (axishift.ath.cx) -- chmod 0 / ; and smile *=)* To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
Re: kernel-hack ??
Twiddle the sysctl: kern.ps_showallprocs Sam Hi, i just want to know is there a patch on freebsd that can limit the ps aux -- and only show the current user's process and not the whole system process. like, what the openwall linux patch did.. http://www.openwall.com/linux/ thank you.. louie miranda (axishift.ath.cx) -- chmod 0 / ; and smile *=)* To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message
Re: kernel-hack ??
Although it should be noted that the feature is far more effective in 5.0-CURRENT, as the inter-process authorization is more consistent and more effectively mediated. For example, the sysctl doesn't properly impact procfs (and some other calls) in -STABLE. Robert N M Watson FreeBSD Core Team, TrustedBSD Project [EMAIL PROTECTED] NAI Labs, Safeport Network Services On Thu, 16 Aug 2001, Samuel Greear wrote: Twiddle the sysctl: kern.ps_showallprocs Sam Hi, i just want to know is there a patch on freebsd that can limit the ps aux -- and only show the current user's process and not the whole system process. like, what the openwall linux patch did.. http://www.openwall.com/linux/ thank you.. louie miranda (axishift.ath.cx) -- chmod 0 / ; and smile *=)* To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message