From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: bug#21226: FAIL: tests/containers.scm Date: Mon, 10 Aug 2015 16:46:51 -0400 Message-ID: References: <55C7B413.1070003@riseup.net> <55C85F91.1080700@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOtyM-0001cb-Dm for bug-guix@gnu.org; Mon, 10 Aug 2015 16:47:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOtyJ-0001Pc-7e for bug-guix@gnu.org; Mon, 10 Aug 2015 16:47:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOtyJ-0001PY-38 for bug-guix@gnu.org; Mon, 10 Aug 2015 16:47:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZOtyI-0001Lt-GX for bug-guix@gnu.org; Mon, 10 Aug 2015 16:47:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <55C85F91.1080700@riseup.net> 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: Jochem Raat , 21226@debbugs.gnu.org [ Forgot to "Reply All". Re-sending to bug tracker ] On Mon, Aug 10, 2015 at 4:23 AM, Jochem Raat wrote: > On 10-08-15 02:10, Thompson, David wrote: >> Hello Jochem, >> >> Thanks for the report. I've done some work to fix these in our >> master, but perhaps you have a situation that I haven't addressed. >> The container functionality requires a relatively recent version (3.8, >> I think) of Linux in order to work. >> >> What version of Linux are you using? > > I think I am running linux 3.13 ('uname -r' returns: 3.13.0-30-generic). > >> What is the output of 'ls -l /proc/self/ns'? > > 'ls -l /proc/self/ns' returns: > total 0 > lrwxrwxrwx 1 jm jm 0 aug 10 10:12 ipc -> ipc:[4026531839] > lrwxrwxrwx 1 jm jm 0 aug 10 10:12 mnt -> mnt:[4026531840] > lrwxrwxrwx 1 jm jm 0 aug 10 10:12 net -> net:[4026531956] > lrwxrwxrwx 1 jm jm 0 aug 10 10:12 pid -> pid:[4026531836] > lrwxrwxrwx 1 jm jm 0 aug 10 10:12 user -> user:[4026531837] > lrwxrwxrwx 1 jm jm 0 aug 10 10:12 uts -> uts:[4026531838] > Thanks. So, you have a new enough kernel for all 6 user namespaces to work but the 'setgroups' interface is not present. I did some reading in the user_namespaces(7) man page and found that using setgroups became a requirement in Linux 3.19 and only kernels may not have it. I took a look at an Ubuntu 14.04 machine which also runs a 3.13 kernel and /proc/self/setgroups exists, so indeed it is an optional thing. The fix will be to test if /proc/self/setgroups exists before writing to it. I'll have this fixed next time I get a chance to hack. Thanks again for reporting this issue! - Dave