core/manager: open our parent dir with O_PATH

This commit is contained in:
Mike Yuan
2023-11-23 20:44:32 +08:00
parent 9e743e7ea9
commit 57d3a6aaf8
+1 -1
View File
@@ -1030,7 +1030,7 @@ int manager_new(RuntimeScope runtime_scope, ManagerTestRunFlags test_run_flags,
if (r < 0)
return r;
self_dir_fd = open_parent(self_exe, O_CLOEXEC|O_DIRECTORY, 0);
self_dir_fd = open_parent(self_exe, O_CLOEXEC|O_PATH|O_DIRECTORY, 0);
if (self_dir_fd < 0)
return self_dir_fd;