summaryrefslogtreecommitdiffstats
path: root/run-stapio.in
blob: 554c2d330c45add8be0e4b05b5d336fa947d3528 (plain)
1
2
3
4
5
6
7
8
9
10
#!@PERL@ -w

# Reset real IDs to those we had before running sudo in run-staprun.sh.
# This gives stapio the IDs it expects from a setuid exec.
$< = $ENV{'SUDO_UID'};
$( = $ENV{'SUDO_GID'};

exec { "$ENV{'builddir'}/stapio" } ('stapio', @ARGV);

exit;