diff --git a/src/libcrun/utils.c b/src/libcrun/utils.c index 1b7104a4b2..417c0b3f6e 100644 --- a/src/libcrun/utils.c +++ b/src/libcrun/utils.c @@ -2091,6 +2091,10 @@ copy_recursive_fd_to_fd (int srcdirfd, int dfd, const char *srcname, const char get_proc_self_fd_path (proc_path, fd); ret = chmod (proc_path, mode & ALLPERMS); + /* If the operation is still not supported, we are dealing with a + symlink, so ignore it. */ + if (ret < 0 && errno == ENOTSUP) + return 0; } if (UNLIKELY (ret < 0))