Cannot run Snappy apps with /tmp symlinked - "unable to create tmpdir. errmsg: Permission denied"

Bug #1585798 reported by Aaron Hastings
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Triaged
Low
Unassigned

Bug Description

An annoyingly simple bug. Should be easy to reproduce.

I have my /tmp directory symlinked to a directory in my /home filesystem (/home/foobar/.slash_tmp). Permissions/ownership are root:root and 777 and no other apps or packages misbehave.

Running a Snappy app fails immediately:

foobar@ubuntu~> ubuntu-calculator-app.calculator
unable to create tmpdir. errmsg: Permission denied

If I remove the symlink and create a "real" /tmp directory, everything works as expected. The issue isn't with crossing filesystem boundaries, as creating the symlink to another directory in the "slash" filesystem produces the same result (e.g. "ln -s /test /tmp")

Let me know if I can provide any further information. This is really all I have on this!

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: snap (not installed)
ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Wed May 25 21:56:32 2016
InstallationDate: Installed on 2016-04-23 (32 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: snap
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Aaron Hastings (thecosmicfrog) wrote :
affects: snap (Ubuntu) → snapd (Ubuntu)
Changed in snapd (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Aaron Hastings (thecosmicfrog) wrote :

Hi all. Any update on this? Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.