Re: [PATCH 07/15] build: syscalls: Add pivot-root.

2015-07-08 Thread Ludovic Courtès
"Thompson, David" skribis: > On Tue, Jul 7, 2015 at 9:35 AM, Ludovic Courtès wrote: >> David Thompson skribis: >> >>> From: David Thompson >>> >>> * guix/build/syscalls.scm (pivot-root): New procedure. >>> * tests/syscalls.scm: Test it. >> >> [...] >> >>> +(test-assert "pivot-root" >>> + (mat

Re: [PATCH 07/15] build: syscalls: Add pivot-root.

2015-07-07 Thread Thompson, David
On Tue, Jul 7, 2015 at 9:35 AM, Ludovic Courtès wrote: > David Thompson skribis: > >> From: David Thompson >> >> * guix/build/syscalls.scm (pivot-root): New procedure. >> * tests/syscalls.scm: Test it. > > [...] > >> +(test-assert "pivot-root" >> + (match (pipe) >> +((in . out) >> + (ma

Re: [PATCH 07/15] build: syscalls: Add pivot-root.

2015-07-07 Thread Ludovic Courtès
David Thompson skribis: > From: David Thompson > > * guix/build/syscalls.scm (pivot-root): New procedure. > * tests/syscalls.scm: Test it. [...] > +(test-assert "pivot-root" > + (match (pipe) > +((in . out) > + (match (clone (logior CLONE_NEWUSER CLONE_NEWNS)) > + (0 > +