-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8344034: Remove security manager dependency in Serialization #22041
Closed
RogerRiggs
wants to merge
234
commits into
openjdk:master
from
RogerRiggs:8344034-sm-removal-serialization
Closed
Changes from 230 commits
Commits
Show all changes
234 commits
Select commit
Hold shift + click to select a range
ef70021
Initial load of JEP 486 implementation
AlanBateman 591d3d6
ServerSocket bind/accept no longer throw SecurityException
AlanBateman 781eecd
Merge
AlanBateman 4035376
hack out Security Manager from LoaderHandler
stuart-marks 6d2006d
Update spec for RMIClassLoader
stuart-marks 6c325c2
Fix whitespace.
stuart-marks 463d46b
Restore URL parsing to LoaderHandler::getClassLoader.
stuart-marks 439ed26
Merge
AlanBateman 53e06d0
Remove vmTestbase/nsk/jvmti/AttachOnDemand/attach004/TestDescription.…
AlanBateman 9e1cec8
Remove leftover SecurityException text from RMIConnection.getObjectIn…
seanjmullan 7cf5824
Remove leftover "@see java.lang.SecurityManager#checkSetFactory" from
seanjmullan 77b58bf
Remove unnecessary comma.
seanjmullan b5f2ca3
Merge
AlanBateman 938737a
Fix typo.
seanjmullan 2612400
Remove text about granting permission and add api note indicating
seanjmullan 4688f78
Remove text about implementers using Security Manager checks from class
seanjmullan 34da8c7
Remove Security Manager text from EXIT_ON_CLOSE.
seanjmullan c62c4ad
Removed TestSecurityManagerChecks.java - this test was testing permis…
seanjmullan d8e15dd
Drop reference to permissions from Font.getFont
AlanBateman 29c0bb2
Merge
AlanBateman 23e0f09
Update record tests to not require SM
AlanBateman bd27286
Remove tests for repeating annotations with SM set, no SM case well t…
AlanBateman 7f451ea
Change reflect/Nestmates/TestReflectionAPI to not test with a SM set
AlanBateman c9ab253
Remove test/langtools/tools/javac/api/ToolProvider/ToolProviderTest.j…
AlanBateman 36522ed
Remove text about granting permissions to module from
seanjmullan c769f2d
Remove text about Proxy objects being granted AllPermission.
seanjmullan 79b4b21
Remove text about needing ReflectPermission to access AccessibleObject.
seanjmullan e46d99c
JDK-8003881: Prevent lambda implementing inner classes from allowing …
igraves 422c489
JDK-8007035: deprecate public void SecurityManager.checkMemberAccess(…
igraves 1f4be6f
Update copyright header
AlanBateman 87f5a53
Merge
AlanBateman edcafbb
Remove text about using group from SM if null from constructor.
seanjmullan dc6e158
Remove text from class description about common pools when SM is enab…
seanjmullan 09f5ffd
Merge
AlanBateman 97c28c4
Fix typo.
seanjmullan 0fab6e0
Remove leftover checkListen text from @throws SecurityException in bi…
seanjmullan 901decf
Some wording changes to deprecated text.
seanjmullan 1702b47
Remove @see SM.checkConnect
AlanBateman a5629a2
Remove uses of "security check" from docs
AlanBateman cc4d56d
Remove left over refs to security checks
AlanBateman 2b4a91d
Remove Security section from SL spec
AlanBateman cf4adb9
Tweak deprecated text.
seanjmullan 1f3df69
More tweaks to deprecated text.
seanjmullan 23bd997
Fix typo.
seanjmullan ca96a40
SecurityManager::getClassContext includes additional frame
AlanBateman 425e72f
Remove SM dependency from tools/doclint/tool/RunTest.java. Change test
seanjmullan d43e0a9
Remove java/lang/constant/methodTypeDesc/ResolveConstantDesc.java, no…
AlanBateman 281ceba
Tweak deprecation text.
seanjmullan 9f17137
In defineClass, remove text about granted permissions to default domain.
seanjmullan a598567
Make specification more clear about default domain containing no perms.
seanjmullan 25d8f26
Remove SM test case from tools/javac/launcher/SourceLauncherTest.java…
seanjmullan b4a05bb
Remove text about needing RuntimePermission "getClassLoader" from
seanjmullan 453b6c1
Merge
AlanBateman 4c668e7
Replace "granted" wording in getPermissions() with "returned". Remove
seanjmullan 57788cf
Remove jdk/dynalink/UntrustedDynamicLinkerFactoryTest.java test as it is
seanjmullan c863402
Restore policy file accidentally deleted.
seanjmullan 2f354c4
8229785: MethodType::fromMethodDescriptorString should require securi…
igraves 1d0edb6
8013527: calling MethodHandles.lookup on itself leads to errors
igraves a398888
8008688: Make MethodHandleInfo public
igraves e585a5e
8008688: Make MethodHandleInfo public
igraves a2ef07a
Removing errant swp file and updating SM problem list
igraves 3aa4935
8076596: BytecodeDescriptor.parseMethod doesn't work during bootstrap…
igraves d6233e8
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan f0a776f
Remove java/lang/reflect/sealed_classes/TestSecurityManagerChecks.jav…
seanjmullan 8d72878
7196190: Improve method of handling MethodHandles
igraves c8e800a
Merge
AlanBateman ac815f1
Move SM problem tests from ProblemList-sm.txt to ProblemList.txt.
seanjmullan 958bb50
Remove runtime/Nestmates/protectionDomain/TestDifferentProtectionDoma…
seanjmullan 2843729
Remove text about executing in caller's AccessControlContext from
seanjmullan 1d0f8dd
Remove text from class description about invoking CallbackHandler's h…
seanjmullan b370c9b
Remove text about executing in caller's AccessControlContext from
seanjmullan a1973fa
Drop text on enforcement of security policies
AlanBateman 875c480
Update copyright headers
AlanBateman f14f7fc
Merge
AlanBateman d3a4d2d
clientlibs: Updated Problemlist JBS ID for javax/swing/JPopupMenu/669…
honkar-jdk 5d45bb1
Remove windows-specific policy file as it is no longer needed.
seanjmullan bc9697c
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan 13601a1
Merge
AlanBateman a655f48
Fix whitespace
AlanBateman fd5824e
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan 413cb48
fix setOpenURIHandler docs
prrace f7d0331
Merge
AlanBateman d05122f
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan c80c01f
Remove text and links to fine grained permissions docs.
seanjmullan 0115b0f
Merge
AlanBateman 2da3699
Merge
AlanBateman 23a43e0
Revert changes to JMXAuthenticator and JMXConnectorFactory as these m…
seanjmullan d034341
Merge
AlanBateman 2a4663c
Merge
AlanBateman 2ebb6de
Change checkAccess() methods to be no-ops, rather than throwing
seanjmullan 7ea65a6
Add api note to getClassContext to use StackWalker instead and
seanjmullan adf5ed7
Restore text about needing permissions from the desktop environment i…
seanjmullan 44432e5
Add text to class description of MBeanServer stating that implementat…
seanjmullan 86ff714
Restored methods in RMIConnection to throw SecurityExceptions again but
seanjmullan 9dd59a1
Sanitize the class descriptions of DelegationPermission and ServicePe…
seanjmullan 16e17b8
Change apiNote to deprecated annotation on checkAccess methods. Chang…
seanjmullan f89d9d0
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan 14475d1
clientlibs: java/awt/Robot/InfiniteLoopException.java problemlisted
honkar-jdk fc10303
Merge
AlanBateman 4f14027
Remove left over references to SecurityManager in tests
AlanBateman 2f8242b
WhiteBox.getWhiteBox cleanup
AlanBateman 8e8d388
Update test summary for tests that no longer run with SM set
AlanBateman e66d14a
Remove left over policy files
AlanBateman 46970f8
Remove left over policy files
AlanBateman 365acc1
test/langtools/tools/doclint/tool/RunTest.java failing with JTREG_TES…
AlanBateman 6e5891f
Merge
AlanBateman 02b4bf1
remove references to sm in pkcs11 tests
wangweij b4f68e3
two useless policy files
wangweij 807eb6e
cleanup TestEC.java
wangweij f88f5d6
Remove redundant @see StackWalker from getClassContext.
seanjmullan 9e831e2
Revert last copyright date as there are now no changes to this file.
seanjmullan 848ed63
update copyright year for the recently updated tests
wangweij 84ad071
this special rule no long applies since we have no PolicyFile class now
wangweij efd1b0f
in Subject, current() is only mostly equivalent to the original getSu…
wangweij 4603119
Remove/modify microbenchmark tests that set an SM.
seanjmullan be38c74
Drop sentence about trusted system code from Proxy spec
AlanBateman d384416
Modify tools/javac/processing/6348193/T6348193.java test to not test
seanjmullan e8656ac
Remove 3 test cases from jdk/dynalink/BeanLinkerTest.java that depend…
seanjmullan 1bf77a3
imageio cache
prrace ebd8a9e
Merge branch 'jep486' of github.com:openjdk/jdk-sandbox into jep486
prrace 313fb8b
TestClassPathPlugin.sh
prrace 7e53cfc
createfont
prrace 75ddc00
policy
prrace 3e509d7
Policy no longer links to standard-names.html
wangweij 352b51e
warningwindow
prrace db88b58
Merge branch 'jep486' of github.com:openjdk/jdk-sandbox into jep486
prrace 2a5d99c
dump.policy
prrace 7c0e8e4
securitydialog
prrace 72a1651
policy
prrace 8383d78
policy
prrace 8c32dc3
clientlibs: deleted policy files
honkar-jdk 7205009
Merge
AlanBateman fa7f48a
Fix @run tag with the correct test name
AlanBateman 0a26398
Modified jdk/dynalink/TrustedDynamicLinkerFactoryTest.java to run w/o…
seanjmullan c9f4db1
reword Subject spec
wangweij 3a5f1fc
Remove compiler/exceptions/ExceptionInInit.java test - exception is no
seanjmullan d9ee496
clientlibs swing test review changes
honkar-jdk 2c9b11d
Merge
AlanBateman 7fbe121
Restore test/langtools/ProblemList.txt as not changed
AlanBateman 82bb0d8
java/net/httpclient/websocket/security/WSURLPermissionTest.java renam…
dfuch 3443975
java/net/httpclient/websocket/security/WSURLPermissionTest.java: inte…
dfuch 300d3f9
warning-string
prrace d32e384
clientlibs: import order
honkar-jdk 5599346
Remove hasSM() method and code that calls it, and remove comment about
seanjmullan d991534
Remove static variable `DEFAULT_POLICY` and unused imports.
seanjmullan 3dbf684
Remove unused static variable NEW_PROXY_IN_PKG.
seanjmullan 0022764
Remove println about Security Manager.
seanjmullan d8564fa
Update @summary to replace "if the right permission is granted" can b…
seanjmullan 29e7e87
Merge
AlanBateman cb50dfd
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan 2bc142e
SM related cleanup of Runtime exec ExecCommand test.
RogerRiggs de0a0f6
clientlibs: Deleted awt/Focus/CloseDialogActivateOwnerTest.java
honkar-jdk b78a7b6
clientlibs: Javadoc updates to src/java.desktop/
honkar-jdk 3aa0054
Merge branch 'master' into jep486
AlanBateman e50cf64
Remove enum from test as it is no longer needed.
seanjmullan 44b552a
Remove unnecessary "anymore" word from @apiNote in Permission subclas…
seanjmullan 0f448e5
Fix typo.
seanjmullan a7a4944
clientlibs: copyright year updates
honkar-jdk 1a2e1a8
no more support for permissions in Proc.java
wangweij bc59b55
Merge
AlanBateman 17b5cc7
Merge
AlanBateman ed0f5c0
Fix type in addProvider.
seanjmullan 7f86027
Remove apiNote. SM changes in smartcardio APIs should be done via JSR…
seanjmullan b6fe405
Change checkPermission exception msg to "checking permissions is not …
seanjmullan 09b6cd6
Add missing class description.
seanjmullan 8b527c9
Add api note to class description that permission checking is not sup…
seanjmullan 275dabd
Change "SecurityManager" to "Security Manager". Add some missing code…
seanjmullan 6614517
Restore note for implementers in src/java.prefs/share/classes/java/ut…
AlanBateman cd794a1
clientlibs: GetSoundBankSecurityException.java renamed to EmptySoundB…
honkar-jdk 934e1c2
clientlibs: GetSoundBankSecurityException.java renamed to EmptySoundB…
honkar-jdk aca9555
clientlibs: Deleted JPopupMenu tests
honkar-jdk 80514d9
clientlibs: Updated Problemlist
honkar-jdk 6064562
Change deprecated annotations to api notes on getPolicy and setPolicy.
seanjmullan 4981da0
Specify that params passed to getPermissions and implies are ignored and
seanjmullan e490f69
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan 047e144
No need to override methods for private static NO_PERMISSIONS_POLICY.
seanjmullan 9eb275c
clientlibs: Updated javax/swing/UIDefaults/6622002/bug6622002.java
honkar-jdk 2a9b98e
remove non enforced/redundant comment in TestLogConfigurationDeadLock…
justin-curtis-lu 8054d10
delete PermissionTest.java as it simply constructs provider impls
justin-curtis-lu bc5b3d7
remove privileged calls in logging/File* tests
justin-curtis-lu cb5f6e4
ResourceBundle/modules/security/* no longer needed. TestPermission te…
justin-curtis-lu fe73fd0
Merge branch 'master' into jep486
AlanBateman 0feceaa
Adjust Executors.privilegedThreadFactory to make clear that thread us…
AlanBateman b654355
Update copyright headers
AlanBateman 548eb9e
Update copyrights. Remove @compile line form Marshal.java test.
seanjmullan 2f90c83
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan 61dd3ba
Update definition of networkaddress.cache.ttl security property.
seanjmullan ee570c4
Update copyrights.
seanjmullan b2d59a4
Remove test - only checked that doPrivileged calls were in place.
seanjmullan 7e72d14
Renamed test as it is not about permission checking anymore but still…
seanjmullan 90469c2
clientlibs: Javadoc cleanup
honkar-jdk 444fabe
rename TestAppletLoggerContext.java as suggested in util test review
justin-curtis-lu 06c4c3c
Improve description of Executors.privilegedThreadFactory
AlanBateman 5577e48
JAXP tests: organize imports of a few tests
JoeWang-Java 1dbfe91
Merge branch 'master' into jep486
AlanBateman 376d1b5
Added API Notes to ProtectionDomain clarifying that the current polic…
seanjmullan 8772ee2
In staticPermissionsOnly(), change "current policy binding" to "curre…
seanjmullan 1670907
Remove two obsolete RMI tests:
stuart-marks 3fe3f59
Modify three RMI tests to work without the security manager:
stuart-marks 7958ee2
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan 11f374a
Merge branch 'master' into jep486
AlanBateman aabb648
Update copyright headers
AlanBateman 6033f47
clientlibs: Problemlisted manual tests
honkar-jdk 440c4a3
Merge branch 'master' into jep486
AlanBateman c69dc5e
Merge branch 'master' into jep486
AlanBateman ab586f6
Remove left-over paragraph about SM use from LoggerFinder
AlanBateman 9aad719
remove LauncherErrors test from problemlisting
jaikiran a2e151c
remove MainClassCantBeLoadedTest from problemlisting
jaikiran 74352c3
Merge branch 'master' into jep486
AlanBateman f6e4b82
Merge branch 'jep486' of https://github.com/openjdk/jdk-sandbox into …
AlanBateman 002f3f6
Merge branch 'master' into jep486
AlanBateman 5866fa4
Remove "access" and "policy" options from debug help.
seanjmullan 789c615
Merge branch 'master' into jep486
AlanBateman 51d2a2a
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan 10164a3
Merge branch 'master' into jep486
AlanBateman 5d5528a
Merge branch 'master' into jep486
AlanBateman e9e7f0c
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan f4518b2
Merge branch 'master' into jep486
AlanBateman fe4ff47
Merge branch 'master' into jep486
AlanBateman b668e0d
test/jdk/java/rmi/server/RMIClassLoader/spi/DefaultProperty.java failing
AlanBateman 353cb94
Move JEP 486 failing tests into hotspot_runtime group.
seanjmullan dfd44d6
Move remaining JEP 486 failing tests into correct groups.
seanjmullan ca8a528
Merge branch 'master' into jep486
AlanBateman 6ad9192
Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411
seanjmullan b45a76b
JDK-8344034: Remove security manager dependency in Serialization
RogerRiggs 1317f47
Merge branch 'master' into 8344034-sm-removal-serialization
RogerRiggs 3f85083
Cleanup of suppress warnings and caller sensitive from review comments.
RogerRiggs 3e56ef0
Remove overlooked SecurityManager use in ObjectInputFilter and Object…
RogerRiggs 8c1fc41
Remove CallerSensitive and suppress warnings
RogerRiggs 054b410
Remove unused imports
RogerRiggs 6e40d2c
Merge branch 'master' into 8344034-sm-removal-serialization
RogerRiggs b8e8d42
Fix test to longer check for CallerSensistive on ObjectStreamField.ge…
RogerRiggs bd82304
Wrap long lines
RogerRiggs c67a212
Wrap more long lines
RogerRiggs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should all usages of
SecurityManager
be removed from this class?