[systemd-devel] BUG: systemd tmpfiles-clean.service trips over afuse stuff in /tmp

Lennart Poettering lennart at poettering.net
Mon Jun 27 05:35:33 PDT 2011


On Thu, 23.06.11 23:05, Kok, Auke-jan H (auke-jan.h.kok at intel.com) wrote:

> Trivial: afuse makes a booboo when encoutering afuse helper stuff in
> /tmp, which is made by my sshfs mounts:
> 
> Jun 23 23:00:24 localhost systemd-tmpfiles[32497]:
> stat(/tmp/afuse-CBUznW/server) failed: Permission denied
> Jun 23 23:00:24 localhost systemd[1]: systemd-tmpfiles-clean.service:
> main process exited, code=exited, status=1
> Jun 23 23:00:24 localhost systemd[1]: Unit
> systemd-tmpfiles-clean.service entered failed state.
> 
> This should probably skip over this file, or ignore it altogether. I'm
> not sure why the failure exit status is needed - it seems to cleanup
> files properly anyway, as I don't see anything over 10d in the tree.

So, we actually skip over files we fail to access, and continue with the
next one, but we do return this as exit code in the end.

I am tempted to say that this behaviour makes a lot of sense, but I can
also understand if you'd prefer it not to return an error exit code.

To understand this better, what is afuse, and why does it return EPERM
for us even though we are root?

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list