bug#35662: Really relocatable binaries crash with Permission denied

2019-05-16 Thread Ludovic Courtès
Hello, "pelzflorian (Florian Pelz)" skribis: > From a Guix point of view, I believe this maybe should be a > WONT-FIX/NOT-OUR-BUG. Sounds good to me. :-) Thanks, Ludo’.

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-16 Thread pelzflorian (Florian Pelz)
On Wed, May 15, 2019 at 05:20:25PM +0200, Giovanni Biscuolo wrote: > Hello Ludovic and Florian, > > I cannot help here, just some thoughts > > as you probably already know, Florian, ZFS is not supported in Linux for > various reasons, above all for a controversial licensing problem [1] > I had

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-15 Thread Ludovic Courtès
Hi, "pelzflorian (Florian Pelz)" skribis: > Do I understand correctly that user namespaces are not really disabled > (?) but fail on ZFS? Correct. Specifically, read-only bind mounts of (and to?) files that reside on ZFS fail with EACCESS, which is normally “impossible.” It would be great if

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-15 Thread Giovanni Biscuolo
Hello Ludovic and Florian, I cannot help here, just some thoughts as you probably already know, Florian, ZFS is not supported in Linux for various reasons, above all for a controversial licensing problem [1] so using zfsonlinux (the ZFS Linux unofficial kernel module) is basically calling for pr

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-14 Thread Ludovic Courtès
"pelzflorian (Florian Pelz)" skribis: > On Mon, May 13, 2019 at 10:45:24PM +0200, pelzflorian (Florian Pelz) wrote: >> On Mon, May 13, 2019 at 10:39:21PM +0200, Ludovic Courtès wrote: >> > I suspect ZFS-on-Linux (right?) is doing something unusual here: >> >> I suppose it is ZFS on Linux; it is

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-14 Thread pelzflorian (Florian Pelz)
On Tue, May 14, 2019 at 10:43:56PM +0200, Ludovic Courtès wrote: > "pelzflorian (Florian Pelz)" skribis: > > > On Mon, May 13, 2019 at 10:45:24PM +0200, pelzflorian (Florian Pelz) wrote: > >> On Mon, May 13, 2019 at 10:39:21PM +0200, Ludovic Courtès wrote: > >> > I suspect ZFS-on-Linux (right?) i

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-14 Thread pelzflorian (Florian Pelz)
On Mon, May 13, 2019 at 10:45:24PM +0200, pelzflorian (Florian Pelz) wrote: > On Mon, May 13, 2019 at 10:39:21PM +0200, Ludovic Courtès wrote: > > I suspect ZFS-on-Linux (right?) is doing something unusual here: > > I suppose it is ZFS on Linux; it is Linux, I can ask the admins if it > could be s

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-13 Thread pelzflorian (Florian Pelz)
On Mon, May 13, 2019 at 10:39:21PM +0200, Ludovic Courtès wrote: > I suspect ZFS-on-Linux (right?) is doing something unusual here: I suppose it is ZFS on Linux; it is Linux, I can ask the admins if it could be something else. > What do the following commands do on this system? > > --8<---

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-13 Thread Ludovic Courtès
"pelzflorian (Florian Pelz)" skribis: > On Mon, May 13, 2019 at 03:54:11PM +0200, Ludovic Courtès wrote: >> Can you show the mount options of you root file system? >> >> mount | grep 'on / ' >> > > [f_pelz12@tux6 ~]$ mount | grep 'on / ' > rpool/data/subvol-161199-disk-0 on / type zfs (rw,noa

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-13 Thread pelzflorian (Florian Pelz)
On Mon, May 13, 2019 at 03:54:11PM +0200, Ludovic Courtès wrote: > Can you show the mount options of you root file system? > > mount | grep 'on / ' > [f_pelz12@tux6 ~]$ mount | grep 'on / ' rpool/data/subvol-161199-disk-0 on / type zfs (rw,noatime,xattr,posixacl) > What’s the exit code of th

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-13 Thread Ludovic Courtès
Hi Florian, "pelzflorian (Florian Pelz)" skribis: > 32476 clone(child_stack=NULL, flags=CLONE_NEWNS|CLONE_NEWUSER|SIGCHLD) = 32477 [...] > 32477 mount("//lib", "/tmp/guix-exec-eqHoYA/lib", 0x47e0c5, > MS_RDONLY|MS_BIND|MS_REC, NULL) = -1 EACCES (Permission denied) > 32477 mkdir("/tmp/guix-exe

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-13 Thread pelzflorian (Florian Pelz)
On Mon, May 13, 2019 at 09:49:40AM +0200, Ludovic Courtès wrote: > Hi Florian, > > "pelzflorian (Florian Pelz)" skribis: > > > On Fri, May 10, 2019 at 11:50:19PM +0200, Ludovic Courtès wrote: > >> That suggests the wrapper chose the user namespace method (not PRoot), > >> but that didn’t quite w

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-13 Thread Ludovic Courtès
Hi Florian, "pelzflorian (Florian Pelz)" skribis: > On Fri, May 10, 2019 at 11:50:19PM +0200, Ludovic Courtès wrote: >> That suggests the wrapper chose the user namespace method (not PRoot), >> but that didn’t quite work. >> >> Could you post the output of: >> >> strace ./mybin/sh >> >> ?

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-10 Thread pelzflorian (Florian Pelz)
On Fri, May 10, 2019 at 11:50:19PM +0200, Ludovic Courtès wrote: > That suggests the wrapper chose the user namespace method (not PRoot), > but that didn’t quite work. > > Could you post the output of: > > strace ./mybin/sh > > ? > [f_pelz12@tux6 ~]$ strace ./mybin/sh execve("./mybin/sh", [

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-10 Thread Ludovic Courtès
Hello, "pelzflorian (Florian Pelz)" skribis: > The manual gives the following example of guix pack -RR: > > guix pack -RR -S /mybin=bin bash > tar xf pack.tar.gz > ./mybin/sh > > This fails on my university’s server for students which uses Linux > container “VMs” with Ubuntu an

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-09 Thread pelzflorian (Florian Pelz)
On Fri, May 10, 2019 at 12:01:36AM +0200, pelzflorian (Florian Pelz) wrote: > sed -i 's|@STORE_DIRECTORY@|/gnu/store|g' run-in-namespace.c > sed -i 's|@WRAPPED_PROGRAM@|/mybin/sh|g' run-in-namespace.c > gcc -std=gnu99 -static -O0 -g -Wall run-in-namespace.c I think it should have been sed -i 's|@

bug#35662: Really relocatable binaries crash with Permission denied

2019-05-09 Thread pelzflorian (Florian Pelz)
The manual gives the following example of guix pack -RR: guix pack -RR -S /mybin=bin bash tar xf pack.tar.gz ./mybin/sh This fails on my university’s server for students which uses Linux container “VMs” with Ubuntu and has no user namespace support and Guix is not installed. Th