From nobody Fri Mar 29 10:31:28 2024 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 945C2DC1271 for ; Wed, 17 Feb 2016 06:09:31 +0000 (UTC) Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 5648FDC0134 for ; Wed, 17 Feb 2016 06:09:30 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id q63so5577538pfb.0 for ; Tue, 16 Feb 2016 22:09:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=SbXHkjIt+FA/ZcXvVN3AYyKdUdA+rogDNx2FT5M+b18=; b=Hh2bJp8q6LZRciZmmdKFW6I5E05nmNUkO7WQ9NAOotNLGb3VQ7jCm8ZQIgc9J+q14D EJFKvvgwG+dlRTe3KcXND/kMjYnRc/0AQj3e+DOKjbi0i/XccDFGIrvIsgNVCUv5sd3F F2r0/u7e2W2iaFHldqntRcs1l6I7rndeHkovEGPtz5L6eayDnf2y/gBKPmL6KD/0bROm tp8zyQiN9KYyuHq39PJRyya8Rzc9U3cXZ4fd/8rv29riD332l9I+RGQTkF4ZN/w0cV59 MdRmAHWWSxv4/VSHwiE8L9hHB8TREks9JVOQINfsWosJLdtMteJ1kiPBjsoSiZNSuZ5y aG7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=SbXHkjIt+FA/ZcXvVN3AYyKdUdA+rogDNx2FT5M+b18=; b=Qv5DwxEKgy+8+Inz5fs/nk3Rldqk6m1Aov1NxM9Qi2924tLj8eoBR+Cczx101exvIc s3sRkR7bLA9SvdyifuddYQ9JaR1jiATVybZIBRn4bgFwGstGlIKPb+nonSBtaZ42NAnU s3TwGpHyW6D9eJ0GCAu8Pn1xoUF6wBSVMnemlpHvWXyf3pkEETvYIZ/nYs952jNV9PaU EyfwMIP+V7tjZAFJSijfrnqzx9MkX7aYWi9mOY7steu5USHkZR5AknMjSy+3O+CixKBZ ujnI/bLF9VCwKo8KxOJF+hDXtiOe1lltxTLNv/iA7+ERZ/DaIesUAulptjLWm3EGlccc Setg== X-Gm-Message-State: AG10YOT2/eGli2h4UhlRBA6tVkYgAdreoWEYZStXUMaD41wpxr9slVg4h/Zh5z/iQ3Fwyg== X-Received: by 10.98.42.8 with SMTP id q8mr36272910pfq.13.1455689369523; Tue, 16 Feb 2016 22:09:29 -0800 (PST) Received: from newbook ([50.0.225.136]) by smtp.gmail.com with ESMTPSA id u90sm49873715pfa.60.2016.02.16.22.09.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Feb 2016 22:09:29 -0800 (PST) Date: Tue, 16 Feb 2016 22:09:24 -0800 From: Isaac Dunham To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] Any chance of enabling makedevs in busybox? Message-ID: <20160217060923.GA5994@newbook> 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=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Virus-Scanned: ClamAV using ClamSMTP Hello, Is there any chance of enabling makedevs (in table mode) in busybox? While it's useless for device management, I'm contemplating using it for a different purpose (creating fifos in bulk). The long version is that I've been working on packaging xconsole, so I can have an X window open watching for any sort of events that might need investigating. The standard approach is: - add a line to /etc/syslog.conf that directs 'interesting' stuff to /dev/xconsole (and, of course, make sure that it still gets logged-- busybox syslogd defaults to logging everything that hasn't been redirected into /var/log/messages, so you need to be careful.) - create the fifo /dev/xconsole at boot (after starting the device manager) - start syslogd with the new config - run xconsole -file /dev/xconsole Now, there are no hooks to create fifos in the early boot sequence, as far as I can tell. So I plan to write an init script that creates any fifos that may be configured (after all, it's quite possible that someone would want to add /dev/kconsole for any kernel messages, /dev/authconsole for security messages...) And it's also sensible to use different groups for monitoring different aspects: you might not want everyone to read all of the same messages. It's *possible* to do this all manually by invoking mkfifo -m ... file chown user:group file for every line in a custom config file. But that's rather likely to bog down. Another possibility is creating a config file, using that to generate a cpio archive, and then extracting that at boot. But this is a horrid hack that would be incredibly brittle. The only other option I can think of (short of writing a tool) is to use makedevs in table mode, so /etc/mkfifos.conf contains: /dev/xconsole p 0660 0 28 - - - - - Thanks, Isaac Dunham --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---