mdev: device node changes parent dir permissions to 777.

2012-12-18 Thread Piotr Karbowski
Hi, For some reason when i do move /dev/msr[0-9]+ nodes to /dev/cpu the /dev/cpu is getting 777 permissions. The very rule that affect it: msr([0-9]+)root:root 600 =cpu/%1/msr Testcase: ### mdev.conf without msr: microcode root:root 600 =cpu/ cpu([0-9]+) root:root 600

[PATCH 2/3] klogd: handle multi-char log levels

2012-12-18 Thread Peter Korsgaard
Since Linux 3.5 (7ff9554bb5: printk: convert byte-buffer to variable-length record buffer), klog buffer can now contain log lines with multi-char loglevel indicators ([0-9]+) - So use strtoul to parse it. function old new delta klogd_main

[PATCH 3/3] syslogd: add option to log to Linux kernel printk buffer

2012-12-18 Thread Peter Korsgaard
Why invent our own shared memory circular buffer when the kernel has a perfectly fine one already? This can be used as a smaller/simpler alternative to the syslogd IPC support (as IPC shmem/klogd/logread aren't needed), while also allowing centralised logging of everything (kernel messages,

[PATCH 1/3] dmesg: handle multi-char log levels

2012-12-18 Thread Peter Korsgaard
Since Linux 3.5 (7ff9554bb5: printk: convert byte-buffer to variable-length record buffer), klog buffer can now contain log lines with multi-char loglevel indicators ([0-9]+) - So we can no longer just skip 3 bytes. Instead skip up to the terminating '' like util-linux does. function

Re: Regression in ash (crashing)

2012-12-18 Thread Rich Felker
On Mon, Dec 17, 2012 at 11:29:25AM +0400, Leonid Lisovskiy wrote: On Sat, Dec 15, 2012 at 9:23 PM, Rich Felker dal...@aerifal.cx wrote: On Sat, Dec 15, 2012 at 12:45:13PM +0300, Leonid Lisovskiy wrote: Probably we should create bug report with reproducible minimal test-cases? Yes and no.