btrfs: use file:line format for assertion report
[linux/fpc-iii.git] / samples / bpf / run_cookie_uid_helper_example.sh
blobfc6bc0451ab45dc7081d153ac1a4b2f579141940
1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 local_dir="$(pwd)"
4 root_dir=$local_dir/../..
5 mnt_dir=$(mktemp -d --tmp)
7 on_exit() {
8 iptables -D OUTPUT -m bpf --object-pinned ${mnt_dir}/bpf_prog -j ACCEPT
9 umount ${mnt_dir}
10 rm -r ${mnt_dir}
13 trap on_exit EXIT
14 mount -t bpf bpf ${mnt_dir}
15 ./per_socket_stats_example ${mnt_dir}/bpf_prog $1