Skip to content

Commit

Permalink
Fixed reference to now removed constant
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed May 17, 2023
1 parent 2251281 commit 4cecaa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/integrations/localmachine/analyze/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ func ImportCollectorInfo(ao *engine.Objects, cinfo localmachine.Info) (*engine.O
if sd, err := engine.ParseACL(service.RegistryDACL); err == nil {
for _, entry := range sd.Entries {
entrysid := entry.SID
if entry.Type == engine.ACETYPE_ACCESS_ALLOWED && (entry.ACEFlags&engine.AceFlagsInheritOnly) == 0 {
if entry.Type == engine.ACETYPE_ACCESS_ALLOWED && (entry.ACEFlags&engine.ACEFLAG_INHERIT_ONLY_ACE) == 0 {
if entrysid == windowssecurity.AdministratorsSID || entrysid == windowssecurity.SystemSID || entrysid.Component(2) == 80 /* Service user */ {
// if we have local admin it's already game over so don't map this
continue
Expand Down

0 comments on commit 4cecaa4

Please sign in to comment.