14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package com.sun.tools.attach; 27 28 /** 29 * When a {@link java.lang.SecurityManager SecurityManager} set, this 30 * is the permission which will be checked when code invokes {@link 31 * VirtualMachine#attach VirtalMachine.attach} to attach to a target virtual 32 * machine. 33 * This permission is also checked when an {@link 34 * com.sun.tools.attach.spi.AttachProvider AttachProvider} is created. </p> 35 * 36 * <p> An <code>AttachPermission</code> object contains a name (also referred 37 * to as a "target name") but no actions list; you either have the 38 * named permission or you don't. 39 * The following table provides a summary description of what the 40 * permission allows, and discusses the risks of granting code the 41 * permission. 42 * <P> 43 * <table border=1 cellpadding=5 summary="Table shows permission 44 * target name, what the permission allows, and associated risks"> 45 * <tr> 46 * <th>Permission Target Name</th> 47 * <th>What the Permission Allows</th> 48 * <th>Risks of Allowing this Permission</th> 49 * </tr> 50 * 51 * <tr> 52 * <td>attachVirtualMachine</td> 53 * <td>Ability to attach to another Java virtual machine and load agents 54 * into that VM. 55 * </td> 56 * <td>This allows an attacker to control the target VM which can potentially 57 * cause it to misbehave. 58 * </td> 59 * </tr> 60 * 61 * <tr> 62 * <td>createAttachProvider</td> | 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package com.sun.tools.attach; 27 28 /** 29 * When a {@link java.lang.SecurityManager SecurityManager} set, this 30 * is the permission which will be checked when code invokes {@link 31 * VirtualMachine#attach VirtalMachine.attach} to attach to a target virtual 32 * machine. 33 * This permission is also checked when an {@link 34 * com.sun.tools.attach.spi.AttachProvider AttachProvider} is created. 35 * 36 * <p> An <code>AttachPermission</code> object contains a name (also referred 37 * to as a "target name") but no actions list; you either have the 38 * named permission or you don't. 39 * The following table provides a summary description of what the 40 * permission allows, and discusses the risks of granting code the 41 * permission. 42 * 43 * <table border=1 cellpadding=5 summary="Table shows permission 44 * target name, what the permission allows, and associated risks"> 45 * <tr> 46 * <th>Permission Target Name</th> 47 * <th>What the Permission Allows</th> 48 * <th>Risks of Allowing this Permission</th> 49 * </tr> 50 * 51 * <tr> 52 * <td>attachVirtualMachine</td> 53 * <td>Ability to attach to another Java virtual machine and load agents 54 * into that VM. 55 * </td> 56 * <td>This allows an attacker to control the target VM which can potentially 57 * cause it to misbehave. 58 * </td> 59 * </tr> 60 * 61 * <tr> 62 * <td>createAttachProvider</td> |