From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: chroot/aarch64 issues Date: Tue, 5 Jul 2016 20:09:53 +0300 Message-ID: <20160705170953.GF6523@debian-netbook> References: <20160704104248.GA32334@debian-netbook> <87h9c5ed87.fsf@gnu.org> <20160704141514.GB32334@debian-netbook> <87oa6czd4w.fsf@gnu.org> <20160705122848.GE6523@debian-netbook> <87d1msw3eo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="o71xDhNo7p97+qVi" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKTrO-0002Yv-IP for guix-devel@gnu.org; Tue, 05 Jul 2016 13:10:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKTrJ-0003RU-Dg for guix-devel@gnu.org; Tue, 05 Jul 2016 13:10:10 -0400 Content-Disposition: inline In-Reply-To: <87d1msw3eo.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --o71xDhNo7p97+qVi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 05, 2016 at 04:44:15PM +0200, Ludovic Court=C3=A8s wrote: > Efraim Flashner skribis: >=20 > > On Tue, Jul 05, 2016 at 10:45:51AM +0200, Ludovic Court=C3=A8s wrote: > >> Efraim Flashner skribis: > >>=20 > >> > On Mon, Jul 04, 2016 at 03:37:12PM +0200, Ludovic Court=C3=A8s wrote: > >> >> Hi! > >>=20 > >> If the kernel config corresponds to this kernel, I don=E2=80=99t see w= hich of > >> the other EINVAL reasons given in clone(2) would apply. Does =E2=80= =98dmesg=E2=80=99 > >> show something? > >>=20 > >> Could you maybe try a C program that invokes clone(2) and progressively > >> remove CLONE_ flags until you find the one that=E2=80=99s causing EINV= AL? > >>=20 > >> Thanks, > >> Ludo=E2=80=99. > > > > I grabbed the code from man 2 clone and ran that on the odroid, which > > told me "clone: Operation not permitted" >=20 > This is expected; quoth clone(2): >=20 > --8<---------------cut here---------------start------------->8--- > EPERM CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWNS, CLONE_NEWPID, or CLONE_N= EWUTS was specified by an unprivi=E2=80=90 > leged process (process without CAP_SYS_ADMIN). > --8<---------------cut here---------------end--------------->8--- >=20 > Can you try running it as root? >=20 > Ludo=E2=80=99. I should've realized something was up when I tried it with all the options listed in the daemon and none of them worked. efraim@odroid-jessie64:~$ sudo ./a.out hello_world [sudo] password for efraim: clone() returned 10751 uts.nodename in child: hello_world uts.nodename in parent: odroid-jessie64 child has terminated --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --o71xDhNo7p97+qVi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXe+neAAoJEPTB05F+rO6TcdUQAJCfpHLshOgG9h9IgKAR+drS GGxWqRIKuKOJQMgwBi2NbT3oX0dlwcvKhcIjAZKCmHDZqUfx9AMpMUTZeyYoyTKp oOLAcKqS4ct9IID+jFR/1lKJtnJdwzOe7tBZ1aiC0g6EfXioMXr/bkSK5QkqR1x5 vPSWgea9n4XSlehlArMGpMTOINMLY7v1UkakwV3uCMtAiXUTHb3yiFeUdKf194gx 0wXz2ert5B+GpEINdFZnpH68rjKq83vOVoSM+/tuUg+iQKTKsVxQxQcNvzOv0OZj eIAdmQYgtpKduZ/vgYXu9dQGbsnC2ftrxSBvIx+tob85OgQqt6rg4v+aClhu3JGN NQKRkuRjqqLCy0lrPhEiUaVwwzpCvsv0yMdZhSD0rpj2n5X0y+d0T59b3fh/0osS WsukQ82De7nlMBahlkIH4NizxGL3tfpV27gJcuwEvsPxj6eQBoEcoAcHp4Nf4c2e CTebdkrfODjB3K1DnUr+2VR3LhmV5lWKYlVJM1pAQbutCAm2ca667Cptw9VJ4ue+ Cqw3ChYErntdF9821l8GKAF0vQnOZGvAjUYgDWO0X9iKlrk6GN4BRRC+9jzA24E1 Z6u5ROwzHvwx6k1/ACah1cg5NaG5RFTP2jCk809JcbpFeQ1TZtVb5tfjSO/Bp24O L07nchiq4sJmvFFQNYYu =o1bb -----END PGP SIGNATURE----- --o71xDhNo7p97+qVi--