Example #1
0
 def get_dangerous_perms(self):
     a = acelist()
     for ace in self.get_aces():
         if not ace.get_perms_dangerous() == []:
             newace = ace.copy()
             newace.set_perms(newace.get_perms_dangerous())
             a.add(newace)
     return a
 def get_dangerous_perms_read(self):
     a = acelist()
     for ace in self.get_aces():
         if not ace.get_perms_dangerous_read() == []:
             newace = ace.copy()
             newace.set_perms(newace.get_perms_dangerous_read())
             a.add(newace)
     return a
Example #3
0
 def get_aces_with_perms(self, perms):
     a = acelist()
     for ace in self.get_aces():
         found_perms = []
         for p in perms:
             if ace.has_perm(p):
                 found_perms.append(p)
         if not found_perms == []:
             newace = ace.copy()
             newace.set_perms(found_perms)
             a.add(newace)
     return a
 def get_aces_with_perms(self, perms):
     a = acelist()
     for ace in self.get_aces():
         found_perms = []
         for p in perms:
             if ace.has_perm(p):
                 found_perms.append(p)
         if not found_perms == []:
             newace = ace.copy()
             newace.set_perms(found_perms)
             a.add(newace)
     return a