mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8338411: Implement JEP 486: Permanently Disable the Security Manager
Co-authored-by: Sean Mullan <mullan@openjdk.org> Co-authored-by: Alan Bateman <alanb@openjdk.org> Co-authored-by: Weijun Wang <weijun@openjdk.org> Co-authored-by: Aleksei Efimov <aefimov@openjdk.org> Co-authored-by: Brian Burkhalter <bpb@openjdk.org> Co-authored-by: Daniel Fuchs <dfuchs@openjdk.org> Co-authored-by: Harshitha Onkar <honkar@openjdk.org> Co-authored-by: Joe Wang <joehw@openjdk.org> Co-authored-by: Jorn Vernee <jvernee@openjdk.org> Co-authored-by: Justin Lu <jlu@openjdk.org> Co-authored-by: Kevin Walls <kevinw@openjdk.org> Co-authored-by: Lance Andersen <lancea@openjdk.org> Co-authored-by: Naoto Sato <naoto@openjdk.org> Co-authored-by: Roger Riggs <rriggs@openjdk.org> Co-authored-by: Brent Christian <bchristi@openjdk.org> Co-authored-by: Stuart Marks <smarks@openjdk.org> Co-authored-by: Ian Graves <igraves@openjdk.org> Co-authored-by: Phil Race <prr@openjdk.org> Co-authored-by: Erik Gahlin <egahlin@openjdk.org> Co-authored-by: Jaikiran Pai <jpai@openjdk.org> Reviewed-by: kevinw, aivanov, rriggs, lancea, coffeys, dfuchs, ihse, erikj, cjplummer, coleenp, naoto, mchung, prr, weijun, joehw, azvegint, psadhukhan, bchristi, sundar, attila
This commit is contained in:
parent
c12b386d19
commit
db85090553
1885 changed files with 5528 additions and 65650 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -66,9 +66,7 @@ import java.util.stream.Stream;
|
|||
* can be used to wait for process termination, and possibly trigger dependent
|
||||
* actions.
|
||||
* <p>
|
||||
* The factory methods limit access to ProcessHandles using the
|
||||
* SecurityManager checking the {@link RuntimePermission RuntimePermission("manageProcess")}.
|
||||
* The ability to control processes is also restricted by the native system,
|
||||
* The ability to control processes may be restricted by the native system,
|
||||
* ProcessHandle provides no more access to, or control over, the native process
|
||||
* than would be allowed by a native application.
|
||||
*
|
||||
|
@ -113,8 +111,6 @@ public interface ProcessHandle extends Comparable<ProcessHandle> {
|
|||
* @param pid a native process ID
|
||||
* @return an {@code Optional<ProcessHandle>} of the PID for the process;
|
||||
* the {@code Optional} is empty if the process does not exist
|
||||
* @throws SecurityException if a security manager has been installed and
|
||||
* it denies RuntimePermission("manageProcess")
|
||||
* @throws UnsupportedOperationException if the implementation
|
||||
* does not support this operation
|
||||
*/
|
||||
|
@ -127,8 +123,6 @@ public interface ProcessHandle extends Comparable<ProcessHandle> {
|
|||
* used to destroy the current process, use {@link System#exit System.exit} instead.
|
||||
*
|
||||
* @return a ProcessHandle for the current process
|
||||
* @throws SecurityException if a security manager has been installed and
|
||||
* it denies RuntimePermission("manageProcess")
|
||||
* @throws UnsupportedOperationException if the implementation
|
||||
* does not support this operation
|
||||
*/
|
||||
|
@ -143,8 +137,6 @@ public interface ProcessHandle extends Comparable<ProcessHandle> {
|
|||
* @return an {@code Optional<ProcessHandle>} of the parent process;
|
||||
* the {@code Optional} is empty if the child process does not have a parent
|
||||
* or if the parent is not available, possibly due to operating system limitations
|
||||
* @throws SecurityException if a security manager has been installed and
|
||||
* it denies RuntimePermission("manageProcess")
|
||||
*/
|
||||
Optional<ProcessHandle> parent();
|
||||
|
||||
|
@ -159,8 +151,6 @@ public interface ProcessHandle extends Comparable<ProcessHandle> {
|
|||
*
|
||||
* @return a sequential Stream of ProcessHandles for processes that are
|
||||
* direct children of the process
|
||||
* @throws SecurityException if a security manager has been installed and
|
||||
* it denies RuntimePermission("manageProcess")
|
||||
*/
|
||||
Stream<ProcessHandle> children();
|
||||
|
||||
|
@ -176,8 +166,6 @@ public interface ProcessHandle extends Comparable<ProcessHandle> {
|
|||
*
|
||||
* @return a sequential Stream of ProcessHandles for processes that
|
||||
* are descendants of the process
|
||||
* @throws SecurityException if a security manager has been installed and
|
||||
* it denies RuntimePermission("manageProcess")
|
||||
*/
|
||||
Stream<ProcessHandle> descendants();
|
||||
|
||||
|
@ -190,8 +178,6 @@ public interface ProcessHandle extends Comparable<ProcessHandle> {
|
|||
* </em>
|
||||
*
|
||||
* @return a Stream of ProcessHandles for all processes
|
||||
* @throws SecurityException if a security manager has been installed and
|
||||
* it denies RuntimePermission("manageProcess")
|
||||
* @throws UnsupportedOperationException if the implementation
|
||||
* does not support this operation
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue