1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 16:59:03 +03:00

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 8092a48cc1.
This commit is contained in:
Yu Watanabe 2018-01-04 00:20:44 +09:00
parent 42b1d8e0f5
commit b43ee82fc1

View File

@ -1810,8 +1810,7 @@ static bool exec_needs_mount_namespace(
return true; return true;
if (context->dynamic_user && 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_CACHE].paths) ||
!strv_isempty(context->directories[EXEC_DIRECTORY_LOGS].paths))) !strv_isempty(context->directories[EXEC_DIRECTORY_LOGS].paths)))
return true; return true;