Comment 1 for bug 1682308

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

This turns out to be the program loader, it removes certain environment variables when AT_SECURE is set (in this case because snap-confine is setuid). The list of variables is in https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=sysdeps/generic/unsecvars.h;hb=HEAD, maybe snap run could shuffle TMPDIR (or HOSTALIASES) into SNAP_TMDIR (or SNAP_HOSTALIASES) and snap-exec could shuffle them back again.