jdk/test/java/net/HttpURLPermission/policy.2
author dsamersoff
Thu, 17 Oct 2013 16:08:01 +0400
changeset 21069 728330d2593a
parent 17473 35cd9b3a98ff
permissions -rw-r--r--
8025812: tmtools/jmap/heap_config tests fail on Linux-ia32 because it Cant attach to the core file Summary: Coredump store memsz elf field rounded up to page Reviewed-by: dholmes, sla
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17473
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
     1
//
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
     2
// Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
     3
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
     4
//
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
     5
// This code is free software; you can redistribute it and/or modify it
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
     6
// under the terms of the GNU General Public License version 2 only, as
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
     7
// published by the Free Software Foundation.
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
     8
//
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
     9
// This code is distributed in the hope that it will be useful, but WITHOUT
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    10
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    11
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    12
// version 2 for more details (a copy is included in the LICENSE file that
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    13
// accompanied this code).
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    14
//
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    15
// You should have received a copy of the GNU General Public License version
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    16
// 2 along with this work; if not, write to the Free Software Foundation,
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    17
// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    18
//
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    19
// Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    20
// or visit www.oracle.com if you need additional information or have any
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    21
// questions.
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    22
//
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    23
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    24
grant {
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    25
    permission java.net.HttpURLPermission "http://127.0.0.1:12567/*", "GET:X-Foo";
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    26
    permission java.net.HttpURLPermission "https://127.0.0.1:12568/*", "POST:X-Fob";
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    27
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    28
    // needed for HttpServer
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    29
    permission "java.net.SocketPermission" "localhost:1024-", "listen,resolve,accept";
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    30
    permission "java.util.PropertyPermission" "test.src", "read";
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    31
    permission java.io.FilePermission "${test.src}/../../../com/sun/net/httpserver/testkeys", "read";
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    32
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    33
    //permission "java.util.logging.LoggingPermission" "control";
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    34
    //permission "java.io.FilePermission" "/tmp/-", "read,write";
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    35
    permission "java.lang.RuntimePermission" "modifyThread";
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    36
    permission "java.lang.RuntimePermission" "setFactory";
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    37
};
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    38
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    39
grant codeBase "file:${{java.ext.dirs}}/*" {
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    40
        permission java.security.AllPermission;
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    41
};
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    42
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    43
grant codeBase "file:///export/repos/jdk8/build/linux-x86_64-normal-server-fastdebug/images/j2sdk-image/jre/lib/rt.jar" {
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    44
        permission java.security.AllPermission;
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    45
};
35cd9b3a98ff 8010464: Evolve java networking same origin policy
michaelm
parents:
diff changeset
    46