Skip to content

Commit

Permalink
Moved some ACL warnings to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Jun 15, 2022
1 parent f7476d9 commit 4c50368
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/engine/securitydescriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,19 +507,19 @@ func ParseSecurityDescriptor(data []byte) (SecurityDescriptor, error) {
result.Control = SecurityDescriptorControlFlag(binary.LittleEndian.Uint16(data[2:4]))
OffsetOwner := binary.LittleEndian.Uint32(data[4:8])
if result.Control&CONTROLFLAG_OWNER_DEFAULTED == 0 && OffsetOwner == 0 {
log.Warn().Msgf("ACL has no owner, and does not default")
log.Debug().Msgf("ACL has no owner, and does not default")
}
OffsetGroup := binary.LittleEndian.Uint32(data[8:12])
if result.Control&CONTROLFLAG_GROUP_DEFAULTED == 0 && OffsetGroup == 0 {
log.Warn().Msgf("ACL has no group, and does not default")
log.Debug().Msgf("ACL has no group, and does not default")
}
OffsetSACL := binary.LittleEndian.Uint32(data[12:16])
if result.Control&CONTROLFLAG_SACL_PRESENT != 0 && OffsetSACL == 0 {
log.Warn().Msgf("ACL has no SACL, but claims to have it")
log.Debug().Msgf("ACL has no SACL, but claims to have it")
}
OffsetDACL := binary.LittleEndian.Uint32(data[16:20])
if result.Control&CONTROLFLAG_DACL_PRESENT != 0 && OffsetDACL == 0 {
log.Warn().Msgf("ACL has no DACL, but claims to have it")
log.Debug().Msgf("ACL has no DACL, but claims to have it")
}
var err error
if OffsetOwner > 0 {
Expand Down

0 comments on commit 4c50368

Please sign in to comment.