logind: make $XDG_RUNTIME_DIR a per-user tmpfs

System Internals / systemd - Lennart Poettering [poettering.net] - 4 March 2014 13:02 UTC

This way each user allocates from his own pool, with its own size limit.

This puts the size limit by default to 10% of the physical RAM size but makes it configurable in logind.conf.

1c231f5 logind: make $XDG_RUNTIME_DIR a per-user tmpfs
configure.ac | 1 +
man/logind.conf.xml | 22 ++++++++++
src/login/logind-gperf.gperf | 1 +
src/login/logind-user.c | 92 ++++++++++++++++++++++++++++++++++++++----
src/login/logind.c | 2 +
src/login/logind.conf | 1 +
src/login/logind.h | 4 ++
src/shared/macro.h | 2 +-
src/shared/util.c | 12 ++++++
src/shared/util.h | 10 +++++
10 files changed, 139 insertions(+), 8 deletions(-)

Upstream: github.com


  • Share