Date: Sun, 13 Mar 2011 23:35:31 -0700 From: Jason Helfman <jhelfman@e-e.com> To: perryh@pluto.rain.com Cc: freebsd-questions@freebsd.org Subject: Re: logging to dmesg from userland Message-ID: <20110314063531.GF13527@eggman.experts-exchange.com> In-Reply-To: <4d7d7894.ZVXy6HlL95xx%2Bv0E%perryh@pluto.rain.com> References: <4d7d7894.ZVXy6HlL95xx%2Bv0E%perryh@pluto.rain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 13, 2011 at 07:08:20PM -0700, perryh@pluto.rain.com thus spake: >I am looking for a way to write into the kernel message buffer -- >the one that dmesg prints out -- from a userland program, to help >in relating kernel printf messages to the userland operations which >provoked them. (Yes, I am aware of the potential DoS implications: >the capability should be restricted to root, or at least to the >"operator" group. I expect to use it only in single-user mode.) > >Is there a program, or a system call, which can do this? logger(1) >seemed a likely prospect, but either it doesn't have this capability >or I haven't found the formula. man syslog should have all of the info you need. -jgh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110314063531.GF13527>