X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 22351DC06C1; Tue, 28 Jul 2015 14:18:16 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id 66B6DDC027B; Tue, 28 Jul 2015 14:18:15 +0000 (UTC) Date: Tue, 28 Jul 2015 16:18:11 +0200 From: Natanael Copa To: =?ISO-8859-1?B?U/ZyZW4=?= Tempel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/busybox: disable syslog to kernel printk buffer Message-ID: <20150728161811.389a8f50@ncopa-desktop.alpinelinux.org> In-Reply-To: <1438033228-25433-1-git-send-email-soeren+git@soeren-tempel.net> References: <1438033228-25433-1-git-send-email-soeren+git@soeren-tempel.net> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP On Mon, 27 Jul 2015 23:40:28 +0200 S=F6ren Tempel wrote: > I quote the .config file: "klogd should not be used together with syslog > to kernel printk buffer." > --- > main/busybox/APKBUILD | 8 ++++---- > main/busybox/busyboxconfig | 10 +++------- > 2 files changed, 7 insertions(+), 11 deletions(-) Thanks for the patch. As I understand, the problem is that klogd will grab kernel messages (from /dev/klog) and send them to syslog, while syslog -K does the opposite, makes syslog write log as kernel messages instead of writing to a file. This is trick to use 'dmesg' for you syslog and avoid logfile and logrotation. So basically, if you enable syslog -K and run klogd, then you will create a loop, kernel messages -> syslog -> kernel message. I don't know if its worth disable the feature at compile time. As long as you don't run klogd and syslogd -K at the same time you should be fine. We normally don't try prevent users from shooting themselves in the foot. Are there other good reason to apply it? Maybe I am missing something... -nc --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---