repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ARCv2: SLC: Make sure busy bit is set properly for region ops
[linux/fpc-iii.git]
/
samples
/
bpf
/
run_cookie_uid_helper_example.sh
blob
f898cfa2b1aa52f71a65db469450d4d001b08b2c
1
#!/bin/bash
2
local_dir
=
"$(pwd)"
3
root_dir
=
$local_dir
/
..
/
..
4
mnt_dir
=
$
(
mktemp
-d --tmp
)
5
6
on_exit
() {
7
iptables
-D
OUTPUT
-m
bpf
--object-pinned
${mnt_dir}
/
bpf_prog
-j
ACCEPT
8
umount
${mnt_dir}
9
rm
-r
${mnt_dir}
10
}
11
12
trap
on_exit EXIT
13
mount
-t
bpf bpf
${mnt_dir}
14
.
/
per_socket_stats_example
${mnt_dir}
/
bpf_prog
$1