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

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#565745: Syslog-Socket /dev/log in chroots
Reply-To: Christoph Berg <[email protected]>, [email protected]
Resent-From: Christoph Berg <[email protected]>
Resent-To: [email protected]
Resent-CC: Debian buildd-tools Developers <[email protected]>
X-Loop: [email protected]
Resent-Date: Mon, 18 Jan 2010 14:30:02 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: report 565745
X-Debian-PR-Package: schroot
X-Debian-PR-Keywords: 
X-Debian-PR-Source: schroot
Received: via spool by [email protected] id=B.126382496017339
          (code B ref -1); Mon, 18 Jan 2010 14:30:02 +0000
Received: (at submit) by bugs.debian.org; 18 Jan 2010 14:29:20 +0000
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rietz.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 22; hammy, 112; neutral, 32; spammy,
	0. spammytokens: hammytokens:0.000-+--H*u:1.5.20, 0.000-+--H*UA:1.5.20,
	0.000-+--H*u:2009-06-14, 0.000-+--H*UA:2009-06-14, 0.000-+--UD:init.d
X-Spam-Status: No, score=-15.5 required=4.0 tests=AWL,BAYES_00,FROMDEVELOPER,
	HAS_PACKAGE,PGPSIGNATURE,X_DEBBUGS_NO_ACK autolearn=ham
	version=3.2.3-bugs.debian.org_2005_01_02
Received: from tesla.df7cb.de ([88.198.227.218] ident=postfix)
	by rietz.debian.org with esmtp (Exim 4.63)
	(envelope-from <[email protected]>)
	id 1NWsbY-0004VQ-1C
	for [email protected]; Mon, 18 Jan 2010 14:29:20 +0000
Received: from benz.df7cb.de (benz.df7cb.de [IPv6:2001:6f8:10ee:e:134::2])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "benz.df7cb.de", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified))
	by tesla.df7cb.de (Postfix) with ESMTPS id 20C7B34244
	for <[email protected]>; Mon, 18 Jan 2010 15:29:18 +0100 (CET)
Received: by benz.df7cb.de (Postfix, from userid 2062)
	id 889626F127; Mon, 18 Jan 2010 15:29:17 +0100 (CET)
Date: Mon, 18 Jan 2010 15:29:17 +0100
From: Christoph Berg <[email protected]>
To: Debian Bugs Submit <[email protected]>
Message-ID: <[email protected]>
Mail-Followup-To: Christoph Berg <[email protected]>,
	Debian Bugs Submit <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="ffoCPvUAPMgSXi6H"
Content-Disposition: inline
User-Agent: Mutt/1.5.20 (2009-06-14)
Delivered-To: [email protected]
[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)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:19:29 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.