Skip to content

Commit 5fed797

Browse files
Proper getStackAccessControlContext implementation
Fixed imports and warnings in SecuritySubstitutions. Implemented PrivilegedStack using FastThreadLocal. Added missing getProtectionDomain method. Disallowed NO_CONTEXT_SINGLETON in executePrivileged. Added allowlist for known-good JDK contexts.
1 parent 9c3e907 commit 5fed797

File tree

6 files changed

+322
-72
lines changed

6 files changed

+322
-72
lines changed

sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/impl/ProcessPropertiesSupport.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -45,7 +45,9 @@
4545
import org.graalvm.nativeimage.c.function.CEntryPointLiteral;
4646

4747
public interface ProcessPropertiesSupport {
48-
String getExecutableName();
48+
default String getExecutableName() {
49+
return "java";
50+
}
4951

5052
long getProcessID();
5153

0 commit comments

Comments
 (0)