-
Notifications
You must be signed in to change notification settings - Fork 700
Open
Labels
Description
lima/pkg/guestagent/guestagent_linux.go
Lines 56 to 74 in 6c5ee21
if auditStatus.Enabled == 0 { | |
logrus.Info("Enabling auditing") | |
if err = auditClient.SetEnabled(true, libaudit.WaitForReply); err != nil { | |
return nil, err | |
} | |
auditStatus, err := auditClient.GetStatus() | |
if err != nil { | |
return nil, err | |
} | |
if auditStatus.Enabled == 0 { | |
if err = auditClient.SetEnabled(true, libaudit.WaitForReply); err != nil { | |
return nil, err | |
} | |
} | |
go a.setWorthCheckingIPTablesRoutine(auditClient, iptablesIdle) | |
} else { | |
a.worthCheckingIPTables = true | |
} |
lima/pkg/guestagent/guestagent_linux.go
Lines 85 to 87 in 6c5ee21
if !supportsAuditing { | |
a.worthCheckingIPTables = true | |
} |
The former part sets a.worthCheckingIPTables = true
when audit is enabled.
OTOH, the latter one sets a.worthCheckingIPTables = true
when audit is disabled.