Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add developer setup documentation #58

@dorser

Description

@dorser

Summary

The README's "Prerequisites" section only mentions kernel 6.11 and ig v0.46.0. There are no instructions for setting up a full development environment.

What's Needed

Add a comprehensive dev setup section (either in README.md or a separate docs/development.md):

Prerequisites

  • Go version (from go.mod)
  • Linux kernel 6.11+ with BPF LSM enabled (CONFIG_BPF_LSM=y)
  • clang/LLVM for BPF compilation
  • ig CLI installation
  • Docker (for container-based testing)

Kernel Setup

  • How to check if BPF LSM is enabled: cat /sys/kernel/security/lsm
  • How to enable it (lsm=bpf boot parameter)
  • VM options for development (e.g., Vagrant, Lima, cloud VMs)

Build & Run

  • Step-by-step build: make build-gadgetsmake build-app
  • Why sudo is needed (BPF requires CAP_SYS_ADMIN)
  • How to run in audit vs enforce mode
  • How to test with Docker containers

Troubleshooting

  • Common errors and their solutions
  • Kernel version compatibility notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationhelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions