From d8c9d3a468e61ee2a2b2c3454e662398b0885411 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Tue, 22 Oct 2013 20:39:18 -0400 Subject: systemd: use unit name in PrivateTmp directories Unit name is used whole in the directory name, so that the unit name can be easily extracted from it, e.g. "/tmp/systemd-abcd.service-DEDBIF1". https://bugzilla.redhat.com/show_bug.cgi?id=957439 --- src/core/namespace.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core/namespace.h') diff --git a/src/core/namespace.h b/src/core/namespace.h index ddb579468d..ee7416b7bd 100644 --- a/src/core/namespace.h +++ b/src/core/namespace.h @@ -23,7 +23,10 @@ #include -int setup_tmpdirs(char **tmp_dir, char **var_tmp_dir); +int setup_tmpdirs(const char *unit_id, + char **tmp_dir, + char **var_tmp_dir); + int setup_namespace(char **read_write_dirs, char **read_only_dirs, char **inaccessible_dirs, -- cgit v1.2.3-54-g00ecf