6 * return whether the user is authenticated.
7 * uses berkeley-style rhosts ``authentication''.
8 * this is only a good idea behind a firewall,
9 * where you trust your network, and even then
10 * not such a great idea. it's grandfathered.
14 rhostsauth(Fcall *rx, Fcall *tx)
19 return "u9fs rhostsauth: no authentication required";
23 rhostsattach(Fcall *rx, Fcall *tx)
27 if(ruserok(remotehostname, 0, rx->uname, rx->uname) < 0){
28 fprint(2, "ruserok(%s, %s) not okay\n", remotehostname, rx->uname);
29 return "u9fs: rhosts authentication failed";