def get_aces(self):
     if self.acelist == None:
         self.acelist = acelist()
         dacl = self.get_dacl()
         if dacl:  # Some files will have no DACL - e.g. on HGFS file systems
             for ace_no in range(0, self.dacl.GetAceCount()):
                 #print "[D] ACE #%d" % ace_no
                 self.acelist.add(ace(self.get_type(), dacl.GetAce(ace_no)))
     return self.acelist.get_aces()
Example #2
0
 def get_aces(self):
     if self.acelist == None:
         self.acelist = acelist()
         dacl = self.get_dacl()
         if dacl:  # Some files will have no DACL - e.g. on HGFS file systems
             for ace_no in range(0, self.dacl.GetAceCount()):
                 #print "[D] ACE #%d" % ace_no
                 self.acelist.add(ace(self.get_type(), dacl.GetAce(ace_no)))
     return self.acelist.get_aces()
Example #3
0
 def set_acelist(self, aces):
     self.acelist = acelist()
     for ace in aces:
         self.acelist.add(ace)