This executable can inherit functions from another.
This function can be performed by any unprivileged user.
echo '...' >/path/to/temp-file
tshark -Xlua_script:/path/to/temp-file
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
echo '...' >/path/to/temp-file
tshark -Xlua_script:/path/to/temp-file