On Tue, Jul 05, 2016 at 04:44:15PM +0200, Ludovic Courtès wrote: > Efraim Flashner <efr...@flashner.co.il> skribis: > > > On Tue, Jul 05, 2016 at 10:45:51AM +0200, Ludovic Courtès wrote: > >> Efraim Flashner <efr...@flashner.co.il> skribis: > >> > >> > On Mon, Jul 04, 2016 at 03:37:12PM +0200, Ludovic Courtès wrote: > >> >> Hi! > >> > >> If the kernel config corresponds to this kernel, I don’t see which of > >> the other EINVAL reasons given in clone(2) would apply. Does ‘dmesg’ > >> show something? > >> > >> Could you maybe try a C program that invokes clone(2) and progressively > >> remove CLONE_ flags until you find the one that’s causing EINVAL? > >> > >> Thanks, > >> Ludo’. > > > > I grabbed the code from man 2 clone and ran that on the odroid, which > > told me "clone: Operation not permitted" > > This is expected; quoth clone(2): > > --8<---------------cut here---------------start------------->8--- > EPERM CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWNS, CLONE_NEWPID, or > CLONE_NEWUTS was specified by an unprivi‐ > leged process (process without CAP_SYS_ADMIN). > --8<---------------cut here---------------end--------------->8--- > > Can you try running it as root? > > Ludo’.
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 -- Efraim Flashner <efr...@flashner.co.il> אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted
signature.asc
Description: PGP signature