tunnel: adjust file mode on linux