'Applies permissions to the object'

def SetSecurity(self, requestedinfo, sd):

    owner = sd.GetSecurityDescriptorOwner()
    group = sd.GetSecurityDescriptorGroup()
    dacl = sd.GetSecurityDescriptorDacl()
    sacl = sd.GetSecurityDescriptorSacl()
    win32security.SetNamedSecurityInfo(self.FileName, win32security.SE_FILE_OBJECT, requestedinfo, owner, group, dacl, sacl)
