From owner-freebsd-questions Wed Aug 8 21:12:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web11707.mail.yahoo.com (web11707.mail.yahoo.com [216.136.172.73]) by hub.freebsd.org (Postfix) with SMTP id 5C62337B401 for ; Wed, 8 Aug 2001 21:12:10 -0700 (PDT) (envelope-from darthtuttle@yahoo.com) Message-ID: <20010809041210.72678.qmail@web11707.mail.yahoo.com> Received: from [24.129.168.171] by web11707.mail.yahoo.com; Wed, 08 Aug 2001 21:12:10 PDT Date: Wed, 8 Aug 2001 21:12:10 -0700 (PDT) From: Michael Conlen Subject: packaging up a kernel hack To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Maybe it's because it's late and I've been hacking, but I haven't seen a good doc on what to do when you have a neat kernel hack you want to share with the rest for the world. This hack *needs* an option. Most people don't need it, and it will give you BIG log files, but I haven't figure out how to create options yet. Any doc pointers? As for the hack, once I create an option for it, I'd like to submit the hack for the rest of the world to use. Someone's bound to find it handy. The hack is a command logger. That's right, it logs commands using a kernel printf(); example... Aug 9 03:10:49 eno /kernel: exec: uid:0 pid:353 -> pid->354 /usr/local/etc/rc.d/apache.sh start This is an example of process 353 starting process 354, which is /usr/local/etc/rc.d/apache.sh with the args start. Now, if you were remotely logging and someone broke in to your box, this would be kinda handy me thinks. Point me to the urls for the docs and I'll package everything up nice and easy for whoever handles it. Thanks -- Groove on Dude Michael Conlne darthtuttle@yahoo.com meconlen@obfuscated.net __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message