From c17ec25e4d9bd6c8e8617416f813e25b2ebbafc5 Mon Sep 17 00:00:00 2001 From: Michal Sekletar Date: Thu, 14 Mar 2013 18:12:27 +0100 Subject: core: reuse the same /tmp, /var/tmp and inaccessible dir All Execs within the service, will get mounted the same /tmp and /var/tmp directories, if service is configured with PrivateTmp=yes. Temporary directories are cleaned up by service itself in addition to systemd-tmpfiles. Directory which is mounted as inaccessible is created at runtime in /run/systemd. --- src/shared/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/shared/util.h') diff --git a/src/shared/util.h b/src/shared/util.h index f0dfe19ad4..8ac4bbc249 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -574,6 +574,7 @@ int on_ac_power(void); int search_and_fopen(const char *path, const char *mode, const char **search, FILE **_f); int search_and_fopen_nulstr(const char *path, const char *mode, const char *search, FILE **_f); +int create_tmp_dir(char template[], mode_t mask, bool need_sticky, char** dir_name); #define FOREACH_LINE(line, f, on_error) \ for (;;) \ -- cgit v1.2.3-54-g00ecf