Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
Signed-off-by: Takashi IIGUNI <[email protected]>
  • Loading branch information
guni1192 committed Feb 26, 2022
1 parent 7ffb50a commit 91b3d5d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@

Sprofiler generate seccomp profiles for OCI Container

## Environment
## Requirement

**sprofiler-bpf**
- Ubuntu >= 20.10
- Podman >= 3.0
- Cgroup v2
- `CONFIG_DEBUG_INFO_BTF=y`

## Getting Started

### Build

```
sudo apt install libelf-dev libgcc-s1 libbpf-dev clang curl linux-tools-generic linux-tools-common make pkg-config podman
bpftool btf dump file /sys/kernel/btf/vmlinux format c > ./sprofiler-bpf/src/bpf/vmlinux.h
bpftool btf dump file /sys/kernel/btf/vmlinux format c > ./sprofiler/src/bpf/vmlinux.h
cargo libbpf make
```

Expand All @@ -35,7 +36,7 @@ sudo podman run --security-opt=no-new-privileges \
ghcr.io/sai-lab/hello-c:latest
# check
sudo podman run --rm --security-opt seccomp=$(pwd)/seccomp-profile.json guni1192/clang-app
sudo podman run --rm --security-opt seccomp=$(pwd)/seccomp-profile.json ghcr.io/sai-lab/hello-c:latest
```

## Testing
Expand Down

0 comments on commit 91b3d5d

Please sign in to comment.