jdk/test/java/awt/PrintJob/Security/policy
author rkennke
Tue, 02 Feb 2010 16:38:26 +0100
changeset 4824 791405fa20ff
child 5506 202f599c92aa
permissions -rw-r--r--
6888734: PIT: regression test fails when java.security.manager is enabled Summary: Load FontManager instance in privileged block to avoid AccessControlException Reviewed-by: igor, tdv
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4824
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
     1
/*
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
     2
 * Copyright 2010 Sun Microsystems, Inc.  All Rights Reserved.
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
     4
 *
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
     8
 *
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    13
 * accompanied this code).
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    14
 *
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    18
 *
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    21
 * have any questions.
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    22
 */
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    23
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    24
/* AUTOMATICALLY GENERATED ON Thu Jan 03 15:48:39 PST 2002*/
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    25
/* DO NOT EDIT */
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    26
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    27
grant {
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    28
 permission java.io.FilePermission "<<ALL FILES>>", "read,write";
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    29
 permission java.lang.RuntimePermission "queuePrintJob"; 
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    30
 permission java.lang.RuntimePermission "setSecurityManager"; 
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    31
};
791405fa20ff 6888734: PIT: regression test fails when java.security.manager is enabled
rkennke
parents:
diff changeset
    32