From 57d3a6aaf829bbf244ffa39a16656f71ea997c7e Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Thu, 23 Nov 2023 20:44:32 +0800 Subject: [PATCH] core/manager: open our parent dir with O_PATH --- src/core/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/manager.c b/src/core/manager.c index dadfc51..37e4f70 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -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; -- 2.7.4