mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Oliver Xymoron <oxymoron@waste.org>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: klibc and logging
Date: Fri, 16 Aug 2002 00:05:31 -0500	[thread overview]
Message-ID: <20020816050531.GB5418@waste.org> (raw)
In-Reply-To: <ajbgbf$7e7$1@cesium.transmeta.com>

On Tue, Aug 13, 2002 at 10:41:03AM -0700, H. Peter Anvin wrote:
>
> Andrew Morton sent me a proposed patch last night which adds a klogctl
> (a.k.a. sys_syslog) which does a printk() from userspace.  It was less
> than 10 lines; i.e. probably worth it.  I have hooked this up to
> syslog(3) in klibc, although the code is not checked in yet.

Don't like it. First, it sounds like overkill. Second it's got some
interesting security implications - only root should be able to flood
the kernel message queue, but non-root should be able to syslog, even
from early userspace. Third, if the only user is klibc, then it's
working against the early userspace's concept of simplifying the kernel.

Why not simply create a file on the initramfs, open it append, spool
raw user and kernel messages to it, then copy that file into the real
syslogd's socket when it becomes available? The "hard" part of syslogd
is the filtering, copying raw messages from socket to file is easy..

-- 
 "Love the dolphins," she advised him. "Write by W.A.S.T.E.." 

  parent reply	other threads:[~2002-08-16  5:01 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-13  7:12 H. Peter Anvin
2002-08-13  7:52 ` Erik Andersen
2002-08-13  8:04   ` Alexander Viro
2002-08-13 10:12     ` Erik Andersen
2002-08-13 10:38       ` Alexander Viro
2002-08-13 14:27         ` Eric W. Biederman
2002-08-13 18:05         ` H. Peter Anvin
2002-08-13  9:42 ` Miquel van Smoorenburg
2002-08-13 17:41   ` H. Peter Anvin
2002-08-13 17:54     ` Benjamin LaHaise
2002-08-13 17:59       ` H. Peter Anvin
2002-08-13 17:55     ` Randy.Dunlap
2002-08-16  5:05     ` Oliver Xymoron [this message]
2002-08-19 13:27 ` Russell King
2002-08-19 13:59   ` H. Peter Anvin
2002-08-19 16:54     ` Russell King
2002-08-19 16:58       ` H. Peter Anvin
2002-08-19 17:25         ` Russell King
2002-08-19 17:27           ` H. Peter Anvin
2002-08-19 17:29           ` H. Peter Anvin
2002-08-19 19:37             ` Alan Cox
2002-08-19 19:40               ` H. Peter Anvin
2002-08-20 13:22       ` Thunder from the hill
2002-08-20 14:45         ` Russell King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020816050531.GB5418@waste.org \
    --to=oxymoron@waste.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®