:: Re: [DNG] libpam-xdg-support / libp…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Roger Leigh
Ημερομηνία:  
Προς: dng
Αντικείμενο: Re: [DNG] libpam-xdg-support / libpam-systemd
On 17/09/2015 10:31, Tomasz Torcz wrote:
> On Thu, Sep 17, 2015 at 11:23:10AM +0200, Jaromil wrote:
>>> If rundirs are on non-volatile storage, my implementation can delete
>>> them at system shutdown (assuming an orderly shutdown is performed).
>>
>> if you use the /tmp prefix as default then you don't even need to handle
>> such a deletion in the default case: it all falls back into the handling
>> of /tmp, simplifying much the site configuration for those not willing
>> to go into details, plus we avoiding unlinks in /var/run
>
>    But XDG_RUNTIME_DIR files should stay for the duration of user's session.
> If user stays logged in for couple of weeks, /tmp cleanup removing
> files older than 1 month can remove user files mid-session.


This is why, as mentioned in my first reply, the tmpreaper needs
configuring to explicitly *not remove* files under this location.