diff --git a/Makefile b/Makefile index 02002da..99d06ca 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,7 @@ test-with-docker: clean --rm \ --volume .:/src \ --workdir /src \ - --cap-add CAP_SYS_ADMIN \ + --cap-add SYS_ADMIN \ --device /dev/net/tun:/dev/net/tun \ ubuntu \ .build/httptap --no-overlay -- curl -so out https://www.example.com @@ -112,7 +112,7 @@ test-with-docker-alpine: clean --rm \ --volume .:/src \ --workdir /src \ - --cap-add CAP_SYS_ADMIN \ + --cap-add SYS_ADMIN \ --device /dev/net/tun:/dev/net/tun \ alpine/curl \ .build/httptap --no-overlay -- curl -so out https://www.example.com @@ -127,7 +127,7 @@ test-with-docker-distroless: clean --rm \ --volume .:/src \ --workdir /src \ - --cap-add CAP_SYS_ADMIN \ + --cap-add SYS_ADMIN \ --device /dev/net/tun:/dev/net/tun \ gcr.io/distroless/static-debian12 \ .build/httptap --no-overlay -- .build/hi diff --git a/httptap.go b/httptap.go index ff6e874..e15bf7a 100644 --- a/httptap.go +++ b/httptap.go @@ -222,7 +222,7 @@ func Main() error { os.Exit(exiterr.ExitCode()) } if err != nil { - return fmt.Errorf("error re-exec'ing ourselves in a new user namespace: %w", err) + return fmt.Errorf("error re-executing ourselves in a new user namespace: %w", err) } return nil }