core: add new setting NetworkNamespacePath= for configuring a netns by path for a service

Fixes: #2741
This commit is contained in:
Lennart Poettering
2019-03-07 16:55:23 +01:00
parent 51af7fb230
commit a8d08f39d1
4 changed files with 29 additions and 3 deletions
+2
View File
@@ -279,6 +279,8 @@ struct ExecContext {
bool nice_set:1;
bool ioprio_set:1;
bool cpu_sched_set:1;
char *network_namespace_path;
};
static inline bool exec_context_restrict_namespaces_set(const ExecContext *c) {