From c3463528427f78e051a217ac7536f72fc3d9e933 Mon Sep 17 00:00:00 2001 From: Christian Femers Date: Sat, 11 Feb 2023 00:02:18 +0100 Subject: [PATCH] Fix native library linking permission rejects JDK internal usage Always deny breaks the network testing on Linux systems, so only allow whitelisted callers. --- .../de/tum/in/test/api/security/ArtemisSecurityManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/tum/in/test/api/security/ArtemisSecurityManager.java b/src/main/java/de/tum/in/test/api/security/ArtemisSecurityManager.java index 95d27bf5..60e6f0f0 100644 --- a/src/main/java/de/tum/in/test/api/security/ArtemisSecurityManager.java +++ b/src/main/java/de/tum/in/test/api/security/ArtemisSecurityManager.java @@ -189,7 +189,7 @@ public void checkLink(String lib) { try { if (enterPublicInterface()) return; - throw new SecurityException(localized("security.error_link")); //$NON-NLS-1$ + checkForNonWhitelistedStackFrames(() -> localized("security.error_link")); //$NON-NLS-1$ } finally { exitPublicInterface(); }