前置き
Wireshark を使って gRPC の通信内容をキャプチャしたくなり実行しようとしたところ以下のPermissionエラーが発生しました。その時の処方箋(対応方法)です。自身の備忘録を兼ねています
you don't have permission to capture on that device

手順
Download Wireshark
Download Wireshark のリンクから、 MaxOS用のファイルをダウンロードします。

ユーザー名を確認する
whoami
exsample-user
bpfの所有権のユーザー名とグループ名を変更する
※ ユーザー名は上記にのコマンドで取得した自身のユーザー名を指定する
cd /dev
sudo chown exsample-user:admin bp*
所有権のユーザー名とグループ名を確認する
ユーザー名は上記のコマンドで取得した自身のユーザー名になっていることが確認できる。
ls -la | grep bp
crw------- 1 exsample-user admin 23, 0 9 26 16:15 bpf0
crw------- 1 exsample-user admin 23, 1 9 26 16:15 bpf1
crw------- 1 exsample-user admin 23, 2 11 2 11:09 bpf2
crw------- 1 exsample-user admin 23, 3 11 1 21:34 bpf3
crw------- 1 exsample-user admin 23, 4 9 26 16:16 bpf4
これで完了です。再度、Wiresharkを実行し正常に動作することを確認してみてください。