Debian Bug report logs - #703010
debianutils: ischroot can no longer detect vservers

version graph

Package: debianutils; Maintainer for debianutils is Ileana Dumitrescu <[email protected]>; Source for debianutils is src:debianutils (PTS, buildd, popcon).

Affects: initscripts

Reported by: Andrew Ruthven <[email protected]>

Date: Thu, 14 Mar 2013 00:30:01 UTC

Severity: wishlist

Tags: moreinfo, wontfix

Merged with 703011, 703012

Found in versions debianutils/4.3.2, debianutils/4.3.4

Full log


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

Received: (at submit) by bugs.debian.org; 14 Mar 2013 00:26:36 +0000
From [email protected] Thu Mar 14 00:26:36 2013
X-Spam-Checker-Version: SpamAssassin 3.3.2-bugs.debian.org_2005_01_02
	(2011-06-06) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-14.9 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE,
	MURPHY_DRUGS_REL8,PGPSIGNATURE autolearn=ham
	version=3.3.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 31; hammy, 151; neutral, 88; spammy,
	0. spammytokens: hammytokens:0.000-+--(unknown), 0.000-+--(unknown),
	0.000-+--(unknown), 0.000-+--(unknown), 0.000-+--(unknown)
Return-path: <[email protected]>
Received: from mail.kula.co.nz ([116.90.133.217])
	by buxtehude.debian.org with esmtp (Exim 4.72)
	(envelope-from <[email protected]>)
	id 1UFw0C-0004MI-BL
	for [email protected]; Thu, 14 Mar 2013 00:26:36 +0000
Received: from localhost (amavis.internal [10.0.0.16])
	by mail.kula.co.nz (Postfix) with ESMTP id E40C960625F77
	for <[email protected]>; Tue, 12 Mar 2013 09:57:55 +1300 (NZDT)
X-Virus-Scanned: Debian amavisd-new at kula.co.nz
Received: from mail.kula.co.nz ([10.0.0.13])
	by localhost (amavis.kula.co.nz [10.0.0.16]) (amavisd-new, port 10024)
	with ESMTP id RZ61FRbGOnNt for <[email protected]>;
	Tue, 12 Mar 2013 09:57:50 +1300 (NZDT)
Received: from [IPv6:2404:130:0:1000:dad3:85ff:fe04:6e9c] (unknown [IPv6:2404:130:0:1000:dad3:85ff:fe04:6e9c])
	by mail.kula.co.nz (Postfix) with ESMTPSA id B43CB6084324A
	for <[email protected]>; Tue, 12 Mar 2013 09:57:50 +1300 (NZDT)
Subject: debianutils: ischroot can no longer detect vservers
From: Andrew Ruthven <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-MKL1bx5qvfv6NK016Z8A"
Date: Tue, 12 Mar 2013 09:57:48 +1300
Message-ID: <[email protected]>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.3 
X-Greylist: delayed 2701 seconds by postgrey-1.32 at buxtehude; Thu, 14 Mar 2013 00:26:36 UTC
Delivered-To: [email protected]
[Message part 1 (text/plain, inline)]
Package: debianutils
Version: 4.3.4
Severity: important

[resubmitting as something seems to have gone wrong with creating the bug]

Dear Maintainer,

The ischroot code checks to see if it can access /proc/1/root to determine
if it is a running inside a chroot. Within vservers you can now read
/proc/1/root so it is no longer a sufficient test for vservers.

On newer vserver patches a better check is to look for a VxID line in
/proc/self/status.  If the line is present you're running a vserver
kernel.  If the value is 0, then you're on the physical host, anything
else means you're in a vserver.

Inside a vserver:

puck@build-sid-amd64:/$ grep VxID /proc/self/status
VxID: 12
puck@build-sid-amd64:/$ 

On the physical host:

build-servers:~$ grep VxID /proc/self/status
VxID: 0
puck@build-servers:~$ 

I've set this bug report to important as it is stopping initscripts from being
installable on a Wheezy vserver.

This is the case on Linux kernel 3.4 + 2.3.3.9 vserver patch.  The 3.2 kernel
set of patches is not affected by this change of behaviour.

Cheers!



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-28-vserver (SMP w/1 CPU core)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=POSIX (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages debianutils depends on:
ii  libc6           2.13-37
ii  sensible-utils  0.0.7

debianutils recommends no packages.

debianutils suggests no packages.

-- no debconf information


[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 17:38:56 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.