/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ |
H A D | FSAclBaseTest.java | 120 fs.setAcl(path, aclSpec); in testModifyAclEntries() 148 fs.setAcl(path, aclSpec); in testModifyAclEntriesOnlyAccess() 166 fs.setAcl(path, aclSpec); in testModifyAclEntriesOnlyDefault() 242 fs.setAcl(path, aclSpec); in testModifyAclEntriesStickyBit() 290 fs.setAcl(path, aclSpec); in testRemoveAclEntries() 317 fs.setAcl(path, aclSpec); in testRemoveAclEntriesOnlyAccess() 339 fs.setAcl(path, aclSpec); in testRemoveAclEntriesOnlyDefault() 364 fs.setAcl(path, aclSpec); in testRemoveAclEntriesMinimal() 386 fs.setAcl(path, aclSpec); in testRemoveAclEntriesMinimalDefault() 412 fs.setAcl(path, aclSpec); in testRemoveAclEntriesStickyBit() [all …]
|
H A D | TestAclTransformation.java | 737 mergeAclEntries(existing, aclSpec); in testMergeAclEntriesResultTooLarge() 752 mergeAclEntries(existing, aclSpec); in testMergeAclEntriesDuplicateEntries() 764 mergeAclEntries(existing, aclSpec); in testMergeAclEntriesNamedMask() 776 mergeAclEntries(existing, aclSpec); in testMergeAclEntriesNamedOther() 1110 replaceAclEntries(existing, aclSpec); in testReplaceAclEntriesResultTooLarge() 1128 replaceAclEntries(existing, aclSpec); in testReplaceAclEntriesDuplicateEntries() 1143 replaceAclEntries(existing, aclSpec); in testReplaceAclEntriesNamedMask() 1158 replaceAclEntries(existing, aclSpec); in testReplaceAclEntriesNamedOther() 1174 replaceAclEntries(existing, aclSpec); in testReplaceAclEntriesMissingUser() 1190 replaceAclEntries(existing, aclSpec); in testReplaceAclEntriesMissingGroup() [all …]
|
H A D | TestFileContextAcl.java | 68 public void modifyAclEntries(Path path, List<AclEntry> aclSpec) in modifyAclEntries() argument 70 fc.modifyAclEntries(path, aclSpec); in modifyAclEntries() 74 public void removeAclEntries(Path path, List<AclEntry> aclSpec) in removeAclEntries() argument 76 fc.removeAclEntries(path, aclSpec); in removeAclEntries() 90 public void setAcl(Path path, List<AclEntry> aclSpec) throws IOException { in setAcl() argument 91 fc.setAcl(path, aclSpec); in setAcl()
|
H A D | TestFSImageWithAcl.java | 120 List<AclEntry> aclSpec = Lists.newArrayList( in doTestDefaultAclNewChildren() local 122 fs.setAcl(dirPath, aclSpec); in doTestDefaultAclNewChildren() 157 aclSpec = Lists.newArrayList(aclEntry(DEFAULT, USER, "foo", READ_WRITE)); in doTestDefaultAclNewChildren() 158 fs.modifyAclEntries(dirPath, aclSpec); in doTestDefaultAclNewChildren()
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/ |
H A D | TestAclWithSnapshot.java | 112 hdfs.setAcl(path, aclSpec); in testOriginalAclEnforcedForSnapshotRootAfterChange() 137 aclSpec = Lists.newArrayList( in testOriginalAclEnforcedForSnapshotRootAfterChange() 142 hdfs.setAcl(path, aclSpec); in testOriginalAclEnforcedForSnapshotRootAfterChange() 191 hdfs.setAcl(filePath, aclSpec); in testOriginalAclEnforcedForSnapshotContentsAfterChange() 229 aclSpec = Lists.newArrayList( in testOriginalAclEnforcedForSnapshotContentsAfterChange() 234 hdfs.setAcl(filePath, aclSpec); in testOriginalAclEnforcedForSnapshotContentsAfterChange() 295 hdfs.setAcl(path, aclSpec); in testOriginalAclEnforcedForSnapshotRootAfterRemoval() 367 hdfs.setAcl(filePath, aclSpec); in testOriginalAclEnforcedForSnapshotContentsAfterRemoval() 465 aclSpec = Lists.newArrayList( in testModifyReadsCurrentState() 611 aclSpec = Lists.newArrayList( in testChangeAclExceedsQuota() [all …]
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ |
H A D | AclTransformation.java | 82 ValidatedAclSpec aclSpec = new ValidatedAclSpec(inAclSpec); in filterAclEntriesByAclSpec() local 89 if (aclSpec.containsKey(existingEntry)) { in filterAclEntriesByAclSpec() 140 ValidatedAclSpec aclSpec = new ValidatedAclSpec(inAclSpec); in mergeAclEntries() local 168 for (AclEntry newEntry: aclSpec) { in mergeAclEntries() 209 for (AclEntry aclSpecEntry: aclSpec) { in replaceAclEntries() 429 private final List<AclEntry> aclSpec; field in AclTransformation.ValidatedAclSpec 447 if (aclSpec.size() > MAX_ENTRIES) { in ValidatedAclSpec() 451 Collections.sort(aclSpec, ACL_ENTRY_COMPARATOR); in ValidatedAclSpec() 452 this.aclSpec = aclSpec; in ValidatedAclSpec() 476 return aclSpec.get(index); in findByKey() [all …]
|
H A D | FSDirAclOp.java | 37 FSDirectory fsd, final String srcArg, List<AclEntry> aclSpec) in modifyAclEntries() argument 53 existingAcl, aclSpec); in modifyAclEntries() 63 FSDirectory fsd, final String srcArg, List<AclEntry> aclSpec) in removeAclEntries() argument 79 existingAcl, aclSpec); in removeAclEntries() 134 FSDirectory fsd, final String srcArg, List<AclEntry> aclSpec) in setAcl() argument 146 List<AclEntry> newAcl = unprotectedSetAcl(fsd, src, aclSpec, false); in setAcl() 189 FSDirectory fsd, String src, List<AclEntry> aclSpec, boolean fromEdits) in unprotectedSetAcl() argument 196 if (aclSpec.isEmpty()) { in unprotectedSetAcl() 203 List<AclEntry> newAcl = aclSpec; in unprotectedSetAcl() 206 newAcl = AclTransformation.replaceAclEntries(existingAcl, aclSpec); in unprotectedSetAcl()
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/ |
H A D | TestViewFileSystemWithAcls.java | 119 List<AclEntry> aclSpec = Lists.newArrayList( in testAclOnMountEntry() local 124 fsView.setAcl(mountOnNn1, aclSpec); in testAclOnMountEntry() 135 aclSpec = Lists.newArrayList( in testAclOnMountEntry() 137 fsView.modifyAclEntries(mountOnNn1, aclSpec); in testAclOnMountEntry() 166 aclSpec = Lists.newArrayList( in testAclOnMountEntry() 168 fsView.modifyAclEntries(mountOnNn2, aclSpec); in testAclOnMountEntry()
|
H A D | TestViewFsWithAcls.java | 119 List<AclEntry> aclSpec = Lists.newArrayList( in testAclOnMountEntry() local 124 fcView.setAcl(mountOnNn1, aclSpec); in testAclOnMountEntry() 135 aclSpec = Lists.newArrayList( in testAclOnMountEntry() 137 fcView.modifyAclEntries(mountOnNn1, aclSpec); in testAclOnMountEntry() 166 aclSpec = Lists.newArrayList( in testAclOnMountEntry() 168 fcView.modifyAclEntries(mountOnNn2, aclSpec); in testAclOnMountEntry()
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/ |
H A D | AclEntry.java | 217 public static List<AclEntry> parseAclSpec(String aclSpec, in parseAclSpec() argument 220 Collection<String> aclStrings = StringUtils.getStringCollection(aclSpec, in parseAclSpec() 310 public static String aclSpecToString(List<AclEntry> aclSpec) { in aclSpecToString() argument 312 for ( AclEntry e : aclSpec ) { in aclSpecToString()
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ |
H A D | ChRootedFileSystem.java | 303 public void modifyAclEntries(Path path, List<AclEntry> aclSpec) in modifyAclEntries() argument 305 super.modifyAclEntries(fullPath(path), aclSpec); in modifyAclEntries() local 309 public void removeAclEntries(Path path, List<AclEntry> aclSpec) in removeAclEntries() argument 311 super.removeAclEntries(fullPath(path), aclSpec); in removeAclEntries() local 325 public void setAcl(Path path, List<AclEntry> aclSpec) throws IOException { in setAcl() argument 326 super.setAcl(fullPath(path), aclSpec); in setAcl() local
|
H A D | ChRootedFs.java | 300 public void modifyAclEntries(Path path, List<AclEntry> aclSpec) in modifyAclEntries() argument 302 myFs.modifyAclEntries(fullPath(path), aclSpec); in modifyAclEntries() local 306 public void removeAclEntries(Path path, List<AclEntry> aclSpec) in removeAclEntries() argument 308 myFs.removeAclEntries(fullPath(path), aclSpec); in removeAclEntries() local 322 public void setAcl(Path path, List<AclEntry> aclSpec) throws IOException { in setAcl() argument 323 myFs.setAcl(fullPath(path), aclSpec); in setAcl() local
|
H A D | ViewFs.java | 629 public void modifyAclEntries(Path path, List<AclEntry> aclSpec) in modifyAclEntries() argument 633 res.targetFileSystem.modifyAclEntries(res.remainingPath, aclSpec); in modifyAclEntries() 637 public void removeAclEntries(Path path, List<AclEntry> aclSpec) in removeAclEntries() argument 641 res.targetFileSystem.removeAclEntries(res.remainingPath, aclSpec); in removeAclEntries() 661 public void setAcl(Path path, List<AclEntry> aclSpec) throws IOException { in setAcl() argument 664 res.targetFileSystem.setAcl(res.remainingPath, aclSpec); in setAcl() 955 public void modifyAclEntries(Path path, List<AclEntry> aclSpec) in modifyAclEntries() argument 962 public void removeAclEntries(Path path, List<AclEntry> aclSpec) in removeAclEntries() argument 981 public void setAcl(Path path, List<AclEntry> aclSpec) throws IOException { in setAcl() argument
|
H A D | ViewFileSystem.java | 548 public void modifyAclEntries(Path path, List<AclEntry> aclSpec) 552 res.targetFileSystem.modifyAclEntries(res.remainingPath, aclSpec); 556 public void removeAclEntries(Path path, List<AclEntry> aclSpec) 560 res.targetFileSystem.removeAclEntries(res.remainingPath, aclSpec); 580 public void setAcl(Path path, List<AclEntry> aclSpec) throws IOException { 583 res.targetFileSystem.setAcl(res.remainingPath, aclSpec); 950 public void modifyAclEntries(Path path, List<AclEntry> aclSpec) 957 public void removeAclEntries(Path path, List<AclEntry> aclSpec) 976 public void setAcl(Path path, List<AclEntry> aclSpec) throws IOException {
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ |
H A D | FilterFs.java | 306 public void modifyAclEntries(Path path, List<AclEntry> aclSpec) in modifyAclEntries() argument 308 myFs.modifyAclEntries(path, aclSpec); in modifyAclEntries() 312 public void removeAclEntries(Path path, List<AclEntry> aclSpec) in removeAclEntries() argument 314 myFs.removeAclEntries(path, aclSpec); in removeAclEntries() 328 public void setAcl(Path path, List<AclEntry> aclSpec) throws IOException { in setAcl() argument 329 myFs.setAcl(path, aclSpec); in setAcl()
|
H A D | FilterFileSystem.java | 546 public void modifyAclEntries(Path path, List<AclEntry> aclSpec) in modifyAclEntries() argument 548 fs.modifyAclEntries(path, aclSpec); in modifyAclEntries() 552 public void removeAclEntries(Path path, List<AclEntry> aclSpec) in removeAclEntries() argument 554 fs.removeAclEntries(path, aclSpec); in removeAclEntries() 568 public void setAcl(Path path, List<AclEntry> aclSpec) throws IOException { in setAcl() argument 569 fs.setAcl(path, aclSpec); in setAcl()
|
/dports/net/rclone/rclone-1.57.0/vendor/github.com/colinmarc/hdfs/v2/internal/protocol/hadoop_hdfs/ |
H A D | acl.proto | 66 repeated AclEntryProto aclSpec = 2; field 81 repeated AclEntryProto aclSpec = 2; field 96 repeated AclEntryProto aclSpec = 2; field
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-hdfs-project/hadoop-hdfs/src/main/proto/ |
H A D | acl.proto | 71 repeated AclEntryProto aclSpec = 2; field 86 repeated AclEntryProto aclSpec = 2; field 101 repeated AclEntryProto aclSpec = 2; field
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/fs/ |
H A D | Hdfs.java | 400 public void modifyAclEntries(Path path, List<AclEntry> aclSpec) 402 dfs.modifyAclEntries(getUriPath(path), aclSpec); 406 public void removeAclEntries(Path path, List<AclEntry> aclSpec) 408 dfs.removeAclEntries(getUriPath(path), aclSpec); 422 public void setAcl(Path path, List<AclEntry> aclSpec) throws IOException { 423 dfs.setAcl(getUriPath(path), aclSpec);
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/ |
H A D | HttpFSServer.java | 612 String aclSpec = params.get(AclPermissionParam.NAME, in put() local 615 new FSOperations.FSSetAcl(path, aclSpec); in put() 617 AUDIT_LOG.info("[{}] to acl [{}]", path, aclSpec); in put() 630 String aclSpec = params.get(AclPermissionParam.NAME, in put() local 633 new FSOperations.FSModifyAclEntries(path, aclSpec); in put() 635 AUDIT_LOG.info("[{}] modify acl entry with [{}]", path, aclSpec); in put() 640 String aclSpec = params.get(AclPermissionParam.NAME, in put() local 643 new FSOperations.FSRemoveAclEntries(path, aclSpec); in put() 645 AUDIT_LOG.info("[{}] remove acl entry [{}]", path, aclSpec); in put()
|
H A D | FSOperations.java | 918 public FSSetAcl(String path, String aclSpec) { in FSSetAcl() argument 920 this.aclEntries = AclEntry.parseAclSpec(aclSpec, true); in FSSetAcl() 989 public FSModifyAclEntries(String path, String aclSpec) { in FSModifyAclEntries() argument 991 this.aclEntries = AclEntry.parseAclSpec(aclSpec, true); in FSModifyAclEntries() 1026 public FSRemoveAclEntries(String path, String aclSpec) { in FSRemoveAclEntries() argument 1028 this.aclEntries = AclEntry.parseAclSpec(aclSpec, true); in FSRemoveAclEntries()
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/ |
H A D | TestJsonUtil.java | 165 List<AclEntry> aclSpec = in testToAclStatus() local 174 aclStatusBuilder.addEntries(aclSpec); in testToAclStatus() 190 List<AclEntry> aclSpec = in testToJsonFromAclStatus() local 194 aclStatusBuilder.addEntries(aclSpec); in testToJsonFromAclStatus()
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/ |
H A D | TestHarFileSystem.java | 176 public void modifyAclEntries(Path path, List<AclEntry> aclSpec) in modifyAclEntries() argument 179 public void removeAclEntries(Path path, List<AclEntry> aclSpec) in removeAclEntries() argument 186 public void setAcl(Path path, List<AclEntry> aclSpec) throws IOException; in setAcl() argument
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocol/ |
H A D | ClientProtocol.java | 1298 public void modifyAclEntries(String src, List<AclEntry> aclSpec) in modifyAclEntries() argument 1306 public void removeAclEntries(String src, List<AclEntry> aclSpec) in removeAclEntries() argument 1328 public void setAcl(String src, List<AclEntry> aclSpec) throws IOException; in setAcl() argument
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/server/ |
H A D | TestHttpFSServerNoACLs.java | 248 final String aclSpec = "aclspec=user::rwx," + aclUser1 + "," in testWithNoAcls() local 272 putCmd(path, "SETACL", aclSpec, false); in testWithNoAcls()
|