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

fix some typos #68

Merged
merged 1 commit into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* bash audit, capture bash command for Host Security Audit.
* mysql query SQL audit, support mysqld 5.6\5.7\8.0, and mariadDB.

# eCapture Architecure
# eCapture Architecture
![](./images/ecapture-architecture.png)

# eCapture User Manual
Expand Down
2 changes: 1 addition & 1 deletion kern/bpf/bpf_helper_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -3767,7 +3767,7 @@ static struct socket *(*bpf_sock_from_file)(struct file *file) = (void *) 162;
* actual packet size (resulting in negative packet size) will in
* principle not exceed the MTU, why it is not considered a
* failure. Other BPF-helpers are needed for performing the
* planned size change, why the responsability for catch a negative
* planned size change, why the responsibility for catch a negative
* packet size belong in those helpers.
*
* Specifying *ifindex* zero means the MTU check is performed
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/kernel/kernel_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func currentVersionDebian() (uint32, error) {
// LINUX_VERSION_CODE format (see KernelVersionFromReleaseString())
func CurrentKernelVersion() (uint32, error) {
// We need extra checks for Debian and Ubuntu as they modify
// the kernel version patch number for compatibilty with
// the kernel version patch number for compatibility with
// out-of-tree modules. Linux perf tools do the same for Ubuntu
// systems: https://github.com/torvalds/linux/commit/d18acd15c
//
Expand Down
4 changes: 2 additions & 2 deletions user/imodule.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (this *Module) perfEventReader(errChan chan error, em *ebpf.Map) {
//判断ctx是不是结束
select {
case _ = <-this.ctx.Done():
log.Printf("readEvent recived close signal from context.Done.")
log.Printf("readEvent received close signal from context.Done.")
return
default:
}
Expand Down Expand Up @@ -192,7 +192,7 @@ func (this *Module) ringbufEventReader(errChan chan error, em *ebpf.Map) {
//判断ctx是不是结束
select {
case _ = <-this.ctx.Done():
this.logger.Printf("readEvent recived close signal from context.Done.")
this.logger.Printf("readEvent received close signal from context.Done.")
return
default:
}
Expand Down