Skip to content

Commit 8e167c9

Browse files
committed
Revert "Make sure file accesses in DnRoleMapper are done in stack frames with permissions (elastic#112400)"
This reverts commit 2871b94.
1 parent c805f90 commit 8e167c9

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

docs/changelog/112400.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/support/DnRoleMapper.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@ public static Map<String, List<String>> parseFile(Path path, Logger logger, Stri
114114
}
115115

116116
try {
117-
// create this here so it's in an allowed stack frame
118-
var file = Files.newInputStream(path);
119-
Settings settings = Settings.builder().loadFromStream(path.getFileName().toString(), file, false).build();
117+
Settings settings = Settings.builder().loadFromPath(path).build();
120118

121119
Map<DN, Set<String>> dnToRoles = new HashMap<>();
122120
Set<String> roles = settings.names();

0 commit comments

Comments
 (0)