Skip to content

Commit

Permalink
OWS-644, ITW 955 : add owner ACLs to the restricted file
Browse files Browse the repository at this point in the history
  • Loading branch information
janakmulani committed Feb 4, 2025
1 parent b2d165d commit 9b83096
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ private static void createRestrictedFile(File file, boolean isDir) throws IOExce
AclFileAttributeView view = Files.getFileAttributeView(tempFile.toPath(), AclFileAttributeView.class);
List<AclEntry> list = new ArrayList<>();
for (AclEntry ae : view.getAcl()) {
String principalName = ae.principal().getName();
if (principalInWinSIDS(ae.principal())) {
LOG.debug("Allowing permissions on restricted file {} for principal {} : {} ", tempFile.getAbsolutePath(), principalName, getSIDForPrincipal(ae.principal()));
LOG.debug("Allowing permissions on restricted file {} for principal {} : {} ", tempFile.getAbsolutePath(), ae.principal().getName(), getSIDForPrincipal(ae.principal()));
list.add(AclEntry.newBuilder()
.setType(AclEntryType.ALLOW)
.setPrincipal(ae.principal())
Expand Down

0 comments on commit 9b83096

Please sign in to comment.