RFR: 8344299: SM cleanup in javax.naming modules [v3]

Aleksei Efimov aefimov at openjdk.org
Thu Nov 28 17:28:59 UTC 2024


> The proposed change cleans-up `SecurityManager`, `doPriviledged`, and `AccessController` usages from `java.naming`, `jdk.naming.rmi` and `jdk.naming.dns` modules.
> 
> One noteworthy change: The `java.naming.rmi.security.manager` JNDI environment property can be used to setup the `SecurityManager`: if the property is added to an environment map the `RegistryContext` attempts to setup the `SecurityManager`. The environment property and related method are removed in this PR. 
> 
> `tier1` - `tier3`, and other non-tiered JNDI tests showed no failures related to this change.

Aleksei Efimov has updated the pull request incrementally with one additional commit since the last revision:

  Remove SecurityConstants.GET_CLASSLOADER_PERMISSION

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/22421/files
  - new: https://git.openjdk.org/jdk/pull/22421/files/3c8687c1..d40273b2

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22421&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22421&range=01-02

  Stats: 4 lines in 1 file changed: 0 ins; 4 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/22421.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22421/head:pull/22421

PR: https://git.openjdk.org/jdk/pull/22421


More information about the core-libs-dev mailing list