On Tue, Sep 20, 2016 at 01:33:44AM +0200, Samuel Thibault wrote: > I don't think we want to make /tmp use trustiness to determine whether > to follow a translator or not. If as root I run > > settrans -c /tmp/foo /hurd/firmlink /some/where > > I'd expect only foo to be removed.
If we want to stick to the Unix interface, and I strongly think we do want that, then we'd need to make any translator visible as a separate file system indeed. On my Debian jessie, the clean_tmp() in /lib/init/bootclean.sh does use find -xdev, so this would work as intended. I don't know if that's already the case or not since Justus' work on /proc/mounts. The work required here is to rely on the parent to report whether a node is a separate file system. This could also break programs assuming a file system is a directory if the attached translator presents itself as something else. -- Richard Braun