This executable can read data from local files.
This function can be performed by any unprivileged user.
7z a -ttar -an -so /path/to/input-file | 7z e -ttar -si -so
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
7z a -ttar -an -so /path/to/input-file | 7z e -ttar -si -so