Browse Source

fix a typo in Security.java (#89248)

Fix name of path.conf option.
dh-cloud 3 years ago
parent
commit
f31b1f6d57

+ 6 - 0
docs/changelog/89248.yaml

@@ -0,0 +1,6 @@
+pr: 89248
+summary: fix "path.conf'" typo in Security.java
+area: Engine
+type: bug
+issues:
+  - 89327

+ 1 - 1
server/src/main/java/org/elasticsearch/bootstrap/Security.java

@@ -216,7 +216,7 @@ final class Security {
         addDirectoryPath(policy, Environment.PATH_HOME_SETTING.getKey(), environment.libFile(), "read,readlink", false);
         addDirectoryPath(policy, Environment.PATH_HOME_SETTING.getKey(), environment.modulesFile(), "read,readlink", false);
         addDirectoryPath(policy, Environment.PATH_HOME_SETTING.getKey(), environment.pluginsFile(), "read,readlink", false);
-        addDirectoryPath(policy, "path.conf'", environment.configFile(), "read,readlink", false);
+        addDirectoryPath(policy, "path.conf", environment.configFile(), "read,readlink", false);
         // read-write dirs
         addDirectoryPath(policy, "java.io.tmpdir", environment.tmpFile(), "read,readlink,write,delete", false);
         addDirectoryPath(policy, Environment.PATH_LOGS_SETTING.getKey(), environment.logsFile(), "read,readlink,write,delete", false);