From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: bug#21410: [TEST-FAIL] 2 tests failed when running `make check' on Debian Date: Mon, 7 Sep 2015 15:42:34 -0400 Message-ID: References: <20150907094741.1ff54819@debian> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a113f1b1679c7dd051f2d7341 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZ2Jm-00006n-5M for bug-guix@gnu.org; Mon, 07 Sep 2015 15:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZ2Ji-0003Hn-Tr for bug-guix@gnu.org; Mon, 07 Sep 2015 15:43:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZ2Ji-0003Hh-Ql for bug-guix@gnu.org; Mon, 07 Sep 2015 15:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZZ2Ji-00061i-B8 for bug-guix@gnu.org; Mon, 07 Sep 2015 15:43:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20150907094741.1ff54819@debian> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Alex Vong Cc: 21410@debbugs.gnu.org --001a113f1b1679c7dd051f2d7341 Content-Type: text/plain; charset=UTF-8 On Sun, Sep 6, 2015 at 9:47 PM, Alex Vong wrote: > Hi Dave, > > I have searched the internet according to the information you provided, > I find this bug report provides useful information. > I have written an example program after going through the clone(2) man page. > It demonstrates the problem and is inlined below. > > First, compile the program as `a.out'. > > Consider shell session 1: > > root# echo 0 > /proc/sys/kernel/unprivileged_userns_clone > user$ ./a.out > I am your parent > Start cloning... > Cannot clone! > > Consider shell session 2: > > root# echo 1 > /proc/sys/kernel/unprivileged_userns_clone > user$ ./a.out > I am your parent > Start cloning... > Cloned! > I am your child > > Any idea what's happenning? > I don't know Linux much, for instance I don't know what is container and namespace in Linux. It seems that the kernel you are using has disabled the use of unprivileged user namespaces by default. After doing that echo as root, you should be able to run the tests successfully. Could you apply the attached patch and let me know if 'make check TESTS=tests/syscalls.scm' and 'make check TESTS=tests/containers.scm' pass in both when unprivileged user namespaces are disabled and when they are enabled? Thank you! - Dave --001a113f1b1679c7dd051f2d7341 Content-Type: text/x-diff; charset=US-ASCII; name="0001-tests-Detect-when-user-namespaces-are-disabled-for-u.patch" Content-Disposition: attachment; filename="0001-tests-Detect-when-user-namespaces-are-disabled-for-u.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ieac4vr90 RnJvbSA0NWU1MDFjMDUxZmU1ZTdmNTExNmM0NGM0NDgzMmFmMTRiNzc1NTI3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEYXZpZCBUaG9tcHNvbiA8ZHRob21wc29uMkB3b3JjZXN0ZXIu ZWR1PgpEYXRlOiBNb24sIDcgU2VwIDIwMTUgMTU6Mzg6MDggLTA0MDAKU3ViamVjdDogW1BBVENI XSB0ZXN0czogRGV0ZWN0IHdoZW4gdXNlciBuYW1lc3BhY2VzIGFyZSBkaXNhYmxlZCBmb3IKIHVu cHJpdmlsZWdlZCB1c2Vycy4KCiogZ3VpeC90ZXN0cy5zY20gKCV1c2VyLW5hbWVzcGFjZXM/KTog TmV3IHZhcmlhYmxlLgoqIHRlc3RzL2NvbnRhaW5lcnMuc2NtOiBTa2lwIHRlc3RzIHVubGVzcyB1 c2VyIGNhbiBjcmVhdGUgdXNlciBuYW1lc3BhY2VzLgoqIHRlc3RzL3N5c2NhbGxzLnNjbTogTGlr ZXdpc2UgZm9yIGNsb25lLCBzZXRucywgYW5kIHBpdm90LXJvb3QgdG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