On Fri, Dec 14, 2012 at 09:46:47PM -0800, Steve Langasek wrote: > On Sat, Dec 15, 2012 at 12:39:13AM +0000, Roger Leigh wrote: > > Steve, I don't know if you've seen this bug previously, but it > > would be useful to have your input from the upstart POV. While > > upstart itself is agnostic on this question. The mountall package mounts > /run/user by default in support of the XDG runtime dir spec, which requires > a per-user directory which is guaranteed to be: > > - local > - shared across all sessions for the user on the system > - cleaned at boot > - secure, and only accessible to the owning user > > There is no existing path on the system that's guaranteed to have these > characteristics. /home is not guaranteed to be local; /tmp is not > guaranteed to be cleaned at boot, nor is there a guaranteed secure way to > create a directory there that's discoverable by all possible unrelated > sessions for the user. So the only way to fulfill the XDG requirements is > by creating a new directory structure with new properties.
Debian does clean /tmp at boot, though the FHS does recommend it. And there's nothing to stop us adding the following to post_mountall: rm -rf /tmp/user mkdir -m 0755 /tmp/user This gives us everything that /run/user gives us, without needing to touch /run. Note that the primary motivation for it being under /run AFAICT is that Fedora has pathological /tmp reaping behaviour enabled by default, so this is a workaround for their brokenness rather than there being an inherent need for it to be under /run. This workaround for self-inflicted brokenness does not apply to us. > If you think the XDG requirements are /wrong/, please take that up with the > XDG folks... I have already briefly discussed this with lennart, but IMHO the basic premise for this is flawed from the start, and having its persistence decoupled from the session with started it is fundamentally wrong. It means that you have at a stroke restricted the system from having more than one session for each user. Fine if you only have about GNOME, but otherwise it's not acceptable. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools `- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org