Re: cool feature of dmesg.boot file

2008-02-22 Thread soralx
> On Fri, Feb 22, 2008 at 11:31:36AM +0100, Oliver Fromme wrote: > > If you insist on writing a patch, then please make it > > default off. > > rink@ just provided one, and it does default to off. I fully agree with > defaulting it to off as well; those of us that want it on can set it as > such

Re: cool feature of dmesg.boot file

2008-02-22 Thread Rink Springer
On Fri, Feb 22, 2008 at 02:46:31AM -0800, Jeremy Chadwick wrote: > I'll try out said patch this weekend. Assuming it works, and does get > committed, I'll be more than happy to submit a PR along with a patch to > update the loader.8 manpage, documenting kern.ignore_old_msgbuf. Sounds good to me.

Re: cool feature of dmesg.boot file

2008-02-22 Thread Jeremy Chadwick
On Fri, Feb 22, 2008 at 11:31:36AM +0100, Oliver Fromme wrote: > If you insist on writing a patch, then please make it > default off. rink@ just provided one, and it does default to off. I fully agree with defaulting it to off as well; those of us that want it on can set it as such in loader.conf

Re: cool feature of dmesg.boot file

2008-02-22 Thread Oliver Fromme
Jeremy Chadwick wrote: > Oliver Fromme wrote: > > [...] > Either way, it's a feature with major security implications. So, for > those of us who are concerned about master.passwd changes via > mergemaster being stuffed into msgbuf, how do we disable said feature? > (Before answering, see bel

Re: cool feature of dmesg.boot file

2008-02-22 Thread Rink Springer
On Fri, Feb 22, 2008 at 02:09:24AM -0800, Jeremy Chadwick wrote: > Maybe I should look into writing a patch that does in fact clear the > buffer immediately before reboot, and tie it to a sysctl. I suggest just making a loader tunable to do this. I think the following should do it (untested): ---

Re: cool feature of dmesg.boot file

2008-02-22 Thread Jeremy Chadwick
On Fri, Feb 22, 2008 at 10:52:54AM +0100, Oliver Fromme wrote: > Jeremy Chadwick wrote: > > Oliver Fromme wrote: > > > Upon a reboot, the kernel is usually loaded to the same > > > physical addresses in RAM where it was before, so the > > > dmesg buffer will be at the same location, too (unless

Re: cool feature of dmesg.boot file

2008-02-22 Thread Oliver Fromme
Jeremy Chadwick wrote: > Oliver Fromme wrote: > > Upon a reboot, the kernel is usually loaded to the same > > physical addresses in RAM where it was before, so the > > dmesg buffer will be at the same location, too (unless > > you built a new kernel, of course). So all the contents > > from

Re: memory not cleared on reboot (Was: cool feature of dmesg.boot file)

2008-02-22 Thread Bert JW Regeer
On Feb 22, 2008, at 02:25 , Jeremy Chadwick wrote: [...] Interesting tidbit: We have one production machine which when booted into single-user via serial console for a world install, retains all of the output from that single-user session even once rebooted and brought back into multi-use

Re: cool feature of dmesg.boot file

2008-02-22 Thread Jeremy Chadwick
On Fri, Feb 22, 2008 at 09:28:35AM +0100, Oliver Fromme wrote: > Bartosz Giza wrote: > > I have found quite interesting feature on one of router that lately i have > > taken to administer. > > What i knew was that file /var/run/dmesg.boot holds data from kernel > buffer > > that is taken rig

Re: cool feature of dmesg.boot file

2008-02-22 Thread Oliver Fromme
Bartosz Giza wrote: > I have found quite interesting feature on one of router that lately i have > taken to administer. > What i knew was that file /var/run/dmesg.boot holds data from kernel buffer > that is taken right after file system(s) are mounted. > Lately i have found that one router

Re: cool feature of dmesg.boot file

2008-02-21 Thread Bernd Walter
On Thu, Feb 21, 2008 at 10:29:40PM +0100, Bartosz Giza wrote: > Hi, > > I have found quite interesting feature on one of router that lately i have > taken to administer. > What i knew was that file /var/run/dmesg.boot holds data from kernel buffer > that is taken right after file system(s) are m

cool feature of dmesg.boot file

2008-02-21 Thread Bartosz Giza
Hi, I have found quite interesting feature on one of router that lately i have taken to administer. What i knew was that file /var/run/dmesg.boot holds data from kernel buffer that is taken right after file system(s) are mounted. Lately i have found that one router writes to this file data from