unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Thompson, David" <dthompson2@worcester.edu>
To: Jochem Raat <jchmrt@riseup.net>, 21226@debbugs.gnu.org
Subject: bug#21226: FAIL: tests/containers.scm
Date: Mon, 10 Aug 2015 16:46:51 -0400	[thread overview]
Message-ID: <CAJ=RwfZ_mzwHfFPiHN_=QPvCJaFn0ykedGdADfUHL71Ygv8HMA@mail.gmail.com> (raw)
In-Reply-To: <55C85F91.1080700@riseup.net>

[ Forgot to "Reply All".  Re-sending to bug tracker ]

On Mon, Aug 10, 2015 at 4:23 AM, Jochem Raat <jchmrt@riseup.net> 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

  parent reply	other threads:[~2015-08-10 20:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-09 20:12 bug#21226: FAIL: tests/containers.scm Jochem Raat
     [not found] ` <CAJ=Rwfbie-smxqgdyQSFEsWBpJbr_AE3JM1_mY6D9HkvfBx2hQ@mail.gmail.com>
     [not found]   ` <55C85F91.1080700@riseup.net>
2015-08-10 20:46     ` Thompson, David [this message]
2015-08-11 12:41 ` Thompson, David
2015-08-11 13:29   ` Jochem Raat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ=RwfZ_mzwHfFPiHN_=QPvCJaFn0ykedGdADfUHL71Ygv8HMA@mail.gmail.com' \
    --to=dthompson2@worcester.edu \
    --cc=21226@debbugs.gnu.org \
    --cc=jchmrt@riseup.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).