Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 22 of 22) sorted by relevance

/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarFileFactory.java126 Permission perm = getPermission(result); in getCachedJarFile() local
127 if (perm != null) { in getCachedJarFile()
131 sm.checkPermission(perm); in getCachedJarFile()
135 if ((perm instanceof java.io.FilePermission) && in getCachedJarFile()
136 perm.getActions().indexOf("read") != -1) { in getCachedJarFile()
137 sm.checkRead(perm.getName()); in getCachedJarFile()
138 } else if ((perm instanceof in getCachedJarFile()
140 perm.getActions().indexOf("connect") != -1) { in getCachedJarFile()
/libcore/ojluni/src/main/java/java/security/
DAccessControlException.java48 private Permission perm; field in AccessControlException
70 perm = p; in AccessControlException()
80 return perm; in getPermission()
DAccessControlContext.java51 public void checkPermission(Permission perm) in checkPermission() argument
DAccessController.java101 public static void checkPermission(Permission perm) in checkPermission() argument
/libcore/luni/src/test/java/libcore/java/nio/file/
DFilesTest.java150 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createFile$String$Attr() local
151 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createFile$String$Attr()
156 perm = PosixFilePermissions.fromString("rw-------"); in test_createFile$String$Attr()
157 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createFile$String$Attr()
172 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectory_delegation() local
173 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory_delegation()
201 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectories$Path$Attr() local
202 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectories$Path$Attr()
208 perm = PosixFilePermissions.fromString("rw-------"); in test_createDirectories$Path$Attr()
209 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createDirectories$Path$Attr()
[all …]
DFiles2Test.java223 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_getPosixFilePermissions() local
224 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_getPosixFilePermissions()
239 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_setPosixFilePermissions() local
240 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_setPosixFilePermissions()
241 Files.setPosixFilePermissions(filesSetup.getDataFilePath(), perm); in test_setPosixFilePermissions() local
247 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_setPosixFilePermissions_NPE() local
248 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_setPosixFilePermissions_NPE()
250 Files.setPosixFilePermissions(null, perm); in test_setPosixFilePermissions_NPE()
525 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("-wxrwxrwx"); in test_isReadable() local
526 Files.setPosixFilePermissions(filesSetup.getDataFilePath(), perm); in test_isReadable() local
[all …]
DDefaultFileSystemProviderTest.java426 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectory$String$FileAttr() local
427 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr()
432 perm = PosixFilePermissions.fromString("rw-------"); in test_createDirectory$String$FileAttr()
433 FileAttribute<Set<PosixFilePermission>> attr1 = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr()
442 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createDirectory$String$FileAttr_NPE() local
443 FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perm); in test_createDirectory$String$FileAttr_NPE()
503 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createSymbolicLink$Path$Attr() local
505 .asFileAttribute(perm); in test_createSymbolicLink$Path$Attr()
514 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_createSymbolicLink$Path$Attr_NPE() local
516 .asFileAttribute(perm); in test_createSymbolicLink$Path$Attr_NPE()
DDefaultFileSystemProvider2Test.java534 Set<PosixFilePermission> perm = PosixFilePermissions.fromString("rwx------"); in test_newFileChannel_withFileAttributes() local
536 PosixFilePermissions.asFileAttribute(perm); in test_newFileChannel_withFileAttributes()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileModeAttribute.java50 for (PosixFilePermission perm: perms) { in toUnixMode()
51 if (perm == null) in toUnixMode()
53 switch (perm) { in toUnixMode()
DUnixFileSystemProvider.java493 FilePermission perm = new FilePermission(link.getPathForPermissionCheck(), in readSymbolicLink() local
495 sm.checkPermission(perm); in readSymbolicLink()
/libcore/luni/src/test/java/libcore/java/lang/
DOldRuntimeTest.java78 public void checkPermission(Permission perm) { in test_addShutdownHook()
79 if (perm.getName().equals("shutdownHooks")) { in test_addShutdownHook()
117 public void checkPermission(Permission perm) { in test_execLjava_lang_StringLjava_lang_StringArray()
118 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringLjava_lang_StringArray()
164 public void checkPermission(Permission perm) { in test_execLjava_lang_StringArrayLjava_lang_StringArray()
165 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringArrayLjava_lang_StringArray()
210 public void checkPermission(Permission perm) { in test_execLjava_lang_StringLjava_lang_StringArrayLjava_io_File()
211 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringLjava_lang_StringArrayLjava_io_File()
259 public void checkPermission(Permission perm) { in test_execLjava_lang_StringArrayLjava_lang_StringArrayLjava_io_File()
260 if (perm.getName().equals("checkExec")) { in test_execLjava_lang_StringArrayLjava_lang_StringArrayLjava_io_File()
/libcore/ojluni/src/main/java/java/lang/
DSecurityManager.java125 public void checkPermission(Permission perm) { in checkPermission() argument
129 public void checkPermission(Permission perm, Object context) { in checkPermission() argument
/libcore/ojluni/src/main/java/sun/misc/
DURLClassPath.java658 Permission perm = urlConnection.getPermission();
659 if (perm != null) {
661 security.checkPermission(perm);
665 if ((perm instanceof java.io.FilePermission) &&
666 perm.getActions().indexOf("read") != -1) {
667 security.checkRead(perm.getName());
668 } else if ((perm instanceof
670 perm.getActions().indexOf("connect") != -1) {
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLambdaTestHelpers.java418 List<List<Function<S, S>>> opFunctionPermutations = perm(opFunctions);
440 public static <T> List<List<T>> perm(List<T> l) {
443 for (List<T> perm : perm(sub(l, i))) {
444 perm.add(0, l.get(i));
445 result.add(perm);
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java419 List<List<Function<S, S>>> opFunctionPermutations = perm(opFunctions);
441 public static <T> List<List<T>> perm(List<T> l) {
444 for (List<T> perm : perm(sub(l, i))) {
445 perm.add(0, l.get(i));
446 result.add(perm);
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DAclEntry.java396 for (AclEntryPermission perm: perms) { in toString()
397 sb.append(perm.name()); in toString()
/libcore/ojluni/src/test/java/nio/file/attribute/
DPosixFileAttributeViewTest.java84 for (PosixFilePermission perm: actual) { in checkSecure()
85 if (!requested.contains(perm)) { in checkSecure()
/libcore/ojluni/src/main/java/java/util/prefs/
DFileSystemPreferences.java891 int perm = (usernode? USER_READ_WRITE: USER_RW_ALL_READ);
892 result = lockFile0(lockFile.getCanonicalPath(), perm, shared);
/libcore/ojluni/src/main/java/java/util/
DCalendar.java3524 … RuntimePermission perm = new RuntimePermission("accessClassInPackage.sun.util.calendar");
3525 PermissionCollection perms = perm.newPermissionCollection();
3526 perms.add(perm);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarFileTest.java144 public void checkPermission(Permission perm) {
145 if (perm.getName().equals(forbidenPermissionName)) {
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java1154 void addPermission(Permission perm) { perms.add(perm); }
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTest.java56 public void checkPermission(Permission perm) {}
476 public void checkPermission(Permission perm) { in test_setSocketImplFactoryLjava_net_SocketImplFactory()