Skip to content

Commit

Permalink
CI build hopefully working
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgerring committed Aug 28, 2024
1 parent dabc50c commit a771291
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 25 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
with:
go-version: '1.22'

- name: Build
run: make all

- name: Test
run: go test -v ./...
- name: Build Docker image
run: |
docker build . -t ebpf-network-vershitifier:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ ADD . /app/
WORKDIR /app
RUN make clean
RUN make all
ENTRYPOINT /app/docker-entrypoint.sh
ENTRYPOINT /app/minderbinder

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Yossarian
# Minderbinder

_"The enemy is anybody who's going to get you killed, no matter which side he's on."_

## What is this?
Yossarian is a tool that uses eBPF to inject failures into running processes.
Minderbinder is a tool that uses eBPF to inject failures into running processes.
Presently it can inject failures into **system calls** by attaching kprobes to the system call handler
and failures into **outgoing network traffic** by attaching traffic to the [TC subsystem](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/linux-traffic-control_configuring-and-managing-networking).
23 changes: 7 additions & 16 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,9 @@ agents_of_chaos:
ret_code: -2 # NOENT / no such file or directory
targets:
- process_name: curl
#- process_id: 1234
delay_ms: 100 # Milliseconds
delay_ms: 100
failure_rate: 100

# - name: break_wget_openat
# syscall: openat
# ret_code: -1
# targets:
# - process_name: wget
# failure_rate: 100

- name: break_vim_file_opening
syscall: open
Expand All @@ -38,14 +31,12 @@ agents_of_chaos:
outgoing_network:
- name: break_wget_network
targets:
#- process_id: 456
- process_name: wget
delay_ms: 100 # Milliseconds
delay_ms: 100
failure_rate: 100

incoming_network:
- name: break_system_network
delay_ms: 100 # Milliseconds
failure_rate: 10


- name: break_ping
targets:
- process_name: ping
delay_ms: 100 # Try and let DNS through
failure_rate: 50
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module ebpf-syscalls-stats
module minderbinder

go 1.22

Expand Down

0 comments on commit a771291

Please sign in to comment.