Skip to content

Commit c346352

Browse files
committed
Fix native library linking permission rejects JDK internal usage
Always deny breaks the network testing on Linux systems, so only allow whitelisted callers.
1 parent 365c701 commit c346352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/tum/in/test/api/security/ArtemisSecurityManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public void checkLink(String lib) {
189189
try {
190190
if (enterPublicInterface())
191191
return;
192-
throw new SecurityException(localized("security.error_link")); //$NON-NLS-1$
192+
checkForNonWhitelistedStackFrames(() -> localized("security.error_link")); //$NON-NLS-1$
193193
} finally {
194194
exitPublicInterface();
195195
}

0 commit comments

Comments
 (0)