]> review.fuel-infra Code Review - packages/centos6/kernel.git/blob - perf
Fix CVE-2016-5195 Dirty COW
[packages/centos6/kernel.git] / perf
1 #!/bin/sh
2
3 # In pathological situations, this will print some error about uname.
4 kverrel="`uname -r`" || exit
5
6 exec "/usr/libexec/perf.$kverrel" ${1+"$@"}
7 rc=$?
8
9 # We're still here, so the exec failed.
10 echo >&2 "Sorry, your kernel ($kverrel) doesn't support perf."
11
12 exit $rc