core/execute: introduce exec_needs_network_namespace() helper function

This commit is contained in:
Yu Watanabe
2023-02-23 15:09:13 +09:00
parent 06b3a2f6f0
commit fbbb9697b6
3 changed files with 12 additions and 5 deletions
+1
View File
@@ -531,3 +531,4 @@ const char* exec_resource_type_to_string(ExecDirectoryType i) _const_;
ExecDirectoryType exec_resource_type_from_string(const char *s) _pure_;
bool exec_needs_mount_namespace(const ExecContext *context, const ExecParameters *params, const ExecRuntime *runtime);
bool exec_needs_network_namespace(const ExecContext *context);