Skip to content

Commit 9453427

Browse files
committed
fix forbidden
1 parent f799eb4 commit 9453427

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/bootstrap/Elasticsearch.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.elasticsearch.core.AbstractRefCounted;
3333
import org.elasticsearch.core.CheckedConsumer;
3434
import org.elasticsearch.core.IOUtils;
35+
import org.elasticsearch.core.PathUtils;
3536
import org.elasticsearch.core.SuppressForbidden;
3637
import org.elasticsearch.entitlement.bootstrap.EntitlementBootstrap;
3738
import org.elasticsearch.entitlement.runtime.api.NotEntitledException;
@@ -62,7 +63,6 @@
6263
import java.lang.reflect.InvocationTargetException;
6364
import java.nio.file.Files;
6465
import java.nio.file.Path;
65-
import java.nio.file.Paths;
6666
import java.security.Security;
6767
import java.util.Collection;
6868
import java.util.HashMap;
@@ -489,7 +489,7 @@ static void initializeNatives(final Path tmpFile, final boolean mlockAll, final
489489
// which is the server CLI, which is also a JVM so it has these bits set. Thus, we set it explicitly.
490490
// See https://man7.org/linux/man-pages/man5/core.5.html for more info on the relevant bits of the filter
491491
try {
492-
Files.writeString(Paths.get("/proc/self/coredump_filter"), "0x23");
492+
Files.writeString(PathUtils.get("/proc/self/coredump_filter"), "0x23");
493493
} catch (IOException e) {
494494
throw new RuntimeException("Could not set coredump filter", e);
495495
}

0 commit comments

Comments
 (0)