diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-04 19:20:21 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-04 20:02:50 +0100 |
commit | 1c231f56482546725c4dbd3303f70300bd3c63e9 (patch) | |
tree | dc0f3ff586db692d961264a23b2b23040c1ce53e /src/login/logind.h | |
parent | b5d742138f71e87312541a89aac5657015f50f48 (diff) |
logind: make $XDG_RUNTIME_DIR a per-user tmpfs
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.
Diffstat (limited to 'src/login/logind.h')
-rw-r--r-- | src/login/logind.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/login/logind.h b/src/login/logind.h index 4bb8e7b65a..533554d4bb 100644 --- a/src/login/logind.h +++ b/src/login/logind.h @@ -123,6 +123,8 @@ struct Manager { Hashmap *polkit_registry; sd_event_source *lid_switch_ignore_event_source; + + size_t runtime_dir_size; }; Manager *manager_new(void); @@ -185,3 +187,5 @@ int manager_watch_busname(Manager *manager, const char *name); void manager_drop_busname(Manager *manager, const char *name); int manager_set_lid_switch_ignore(Manager *m, usec_t until); + +int config_parse_tmpfs_size(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); |