Debian Bug report logs - #565745
Syslog-Socket /dev/log in chroots

version graph

Package: schroot; Maintainer for schroot is Christoph Biedl <[email protected]>; Source for schroot is src:schroot (PTS, buildd, popcon).

Reported by: Christoph Berg <[email protected]>

Date: Mon, 18 Jan 2010 14:30:02 UTC

Severity: wishlist

Found in version schroot/1.2.3-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian buildd-tools Developers <[email protected]>:
Bug#565745; Package schroot. (Mon, 18 Jan 2010 14:30:05 GMT) (full text, mbox, link).


Message #3 received at [email protected] (full text, mbox, reply):

From: Christoph Berg <[email protected]>
To: Debian Bugs Submit <[email protected]>
Subject: Syslog-Socket /dev/log in chroots
Date: Mon, 18 Jan 2010 15:29:17 +0100
[Message part 1 (text/plain, inline)]
Package: schroot
Version: 1.2.3-1
Severity: wishlist

Hi,

it would be nice if schroot set up an syslog socket in the chroot, at
least for rsyslog. Here's a coarse script that works for me:


#!/bin/sh

set -e

if [ -f "$CHROOT_SCRIPT_CONFIG" ]; then
    . "$CHROOT_SCRIPT_CONFIG"
elif [ "$2" = "ok" ]; then
    echo "script-config file '$CHROOT_SCRIPT_CONFIG' does not exist"
    exit 1
fi

if [ $1 = "setup-start" ] || [ $1 = "setup-recover" ]; then
    echo "\$AddUnixListenSocket ${CHROOT_PATH}/dev/log" > /etc/rsyslog.d/schroot.conf
    /etc/init.d/rsyslog reload
fi

if [ $1 = "setup-stop" ] ; then
    rm -f /etc/rsyslog.d/schroot.conf
    /etc/init.d/rsyslog reload
fi


Christoph
-- 
[email protected] | http://www.df7cb.de/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Debian buildd-tools Developers <[email protected]>:
Bug#565745; Package schroot. (Mon, 18 Jan 2010 14:42:06 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <[email protected]>. (Mon, 18 Jan 2010 14:42:06 GMT) (full text, mbox, link).


Message #8 received at [email protected] (full text, mbox, reply):

From: Roger Leigh <[email protected]>
To: Christoph Berg <[email protected]>, [email protected]
Subject: Re: [buildd-tools-devel] Bug#565745: Syslog-Socket /dev/log in chroots
Date: Mon, 18 Jan 2010 14:41:09 +0000
[Message part 1 (text/plain, inline)]
On Mon, Jan 18, 2010 at 03:29:17PM +0100, Christoph Berg wrote:
> it would be nice if schroot set up an syslog socket in the chroot, at
> least for rsyslog. Here's a coarse script that works for me:

This does look really neat.  I'm a little apprehensive about
modifying /etc during normal system operation though; does
rsyslog allow addition of sockets at runtime via another
interface, or placement of the files under /var?


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Debian buildd-tools Developers <[email protected]>:
Bug#565745; Package schroot. (Mon, 18 Jan 2010 15:12:05 GMT) (full text, mbox, link).


Message #11 received at [email protected] (full text, mbox, reply):

From: Christoph Berg <[email protected]>
To: [email protected]
Subject: Re: [buildd-tools-devel] Bug#565745: Syslog-Socket /dev/log in chroots
Date: Mon, 18 Jan 2010 16:07:31 +0100
[Message part 1 (text/plain, inline)]
Re: Roger Leigh 2010-01-18 <[email protected]>
> On Mon, Jan 18, 2010 at 03:29:17PM +0100, Christoph Berg wrote:
> > it would be nice if schroot set up an syslog socket in the chroot, at
> > least for rsyslog. Here's a coarse script that works for me:
> 
> This does look really neat.  I'm a little apprehensive about
> modifying /etc during normal system operation though; does
> rsyslog allow addition of sockets at runtime via another
> interface, or placement of the files under /var?

/etc/rsyslog.conf:
#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf

I guess /etc/rsyslog.d/schroot.conf should just read

$IncludeConfig /var/lib/schroot/rsyslogd-interface.d/*.conf

which then could contain $UUID.conf files, or similar.

Btw, about robustness, rsyslogd doesn't mind if the socket directory
disappears or something. I did some stress-testing when adding a
socket for postfix in /etc/rsyslog.d/postfix.conf, and it wouldn't
break even if postfix was uninstalled. (Not so sure about the conf
directory.)

Christoph
-- 
[email protected] | http://www.df7cb.de/
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 08:45:06 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.