Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for listening to audit multicast group #12

Merged
merged 2 commits into from
Sep 7, 2017

Conversation

andrewkroh
Copy link
Member

This adds NewMulticastAuditClient that creates a client that listens to the audit multicast group that was added in kernel 3.16.

Closes #9

This adds `NewMulticastAuditClient` that creates a client that listens to the audit multicast group that was added in kernel 3.16.

Closes elastic#9
return errors.Wrap(err, "failed to create receive-only audit client")
}
} else {
client, err = libaudit.NewAuditClient(diagWriter)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand, all the checks below are not needed in the case of the MultiCase client?

}
defer client.Close()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this defer also happen on some of the errors above?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants