From b43ee82fc1366489963b319dd5f1f22d2833883c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 4 Jan 2018 00:20:44 +0900 Subject: [PATCH] core: RuntimeDirectory= does not request new mount namespace Now RuntimeDirectory= does not create 'private' directory. Thus, it is not neccessary to request new mount namespace. Follow-up for 8092a48cc1d1fb20b66371576754df831d30a43b. --- src/core/execute.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/execute.c b/src/core/execute.c index de72786d7fe..2ec8620b867 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -1810,8 +1810,7 @@ static bool exec_needs_mount_namespace( return true; if (context->dynamic_user && - (!strv_isempty(context->directories[EXEC_DIRECTORY_RUNTIME].paths) || - !strv_isempty(context->directories[EXEC_DIRECTORY_STATE].paths) || + (!strv_isempty(context->directories[EXEC_DIRECTORY_STATE].paths) || !strv_isempty(context->directories[EXEC_DIRECTORY_CACHE].paths) || !strv_isempty(context->directories[EXEC_DIRECTORY_LOGS].paths))) return true;