trouble using sfsagent in MacOS 10.4 Tiger

Kevin Fu <[email protected]> Thu, 27 Oct 2005 14:04:55 -0400
Newsgroups gmane.comp.file-systems.sfs.general
Message-ID <[email protected]>
Hi folks,

Before I dive deeper into SFS on MacOS 10.4: has anyone else run into  
and solved this problem running the sfsagent?  Not sure what's going  
on with /dev/tty.  My machine is a freshly installed G4 running the  
latest 10.4:

broetchen-cs-umass-edu:~/src/build/build-O2 kevinfu$ uname -a
Darwin broetchen.cs.umass.edu 8.2.1 Darwin Kernel Version 8.2.1: Fri  
Jun 24 23:31:10 PDT 2005; root:xnu-792.3.2.obj~1/RELEASE_PPC Power  
Macintosh powerpc

broetchen-cs-umass-edu:~/src/build/build-O2 kevinfu$ ls -la /dev/tty
crw-rw-rw-   1 root  wheel    2,   0 Oct 27 13:58 /dev/tty

broetchen-cs-umass-edu:~/src/build/build-O2 kevinfu$ telnet  
snafu.lcs.mit.edu 4
Trying 18.26.4.12...
Connected to snafu.lcs.mit.edu.
Escape character is '^]'.
^]
telnet> quit
Connection closed.

The problem persists both in NAT'd and unNAT'd environments.

broetchen:/Users/kevinfu/src/build/build-O2 root# /usr/local/sbin/sfscd
broetchen:/Users/kevinfu/src/build/build-O2 root# exit
exit
broetchen-cs-umass-edu:~/src/build/build-O2 kevinfu$ sfsagent  
[email protected]
sfsagent: EOF from sfscd
sfsagent: exiting
broetchen-cs-umass-edu:~/src/build/build-O2 kevinfu$ esfskey: /dev/ 
tty: Input/output error
broetchen-cs-umass-edu:~/src/build/build-O2 kevinfu$
broetchen-cs-umass-edu:~/src/build/build-O2 kevinfu$ export  
ACLNT_TRACE=10
broetchen-cs-umass-edu:~/src/build/build-O2 kevinfu$ sfsagent  
[email protected]
sfsagent: ACLNT_TRACE: call agent_prog_1:AGENT_START x=57f8ff26
sfsagent: ACLNT_TRACE: reply agent_prog_1:AGENT_START x=57f8ff26
int32_t REPLY = 0;
sfsagent: ACLNT_TRACE: call agent_prog_1:AGENT_RNDSEED x=e8f2b77c
sfsagent: ACLNT_TRACE: reply agent_prog_1:AGENT_RNDSEED x=e8f2b77c
opaque REPLY[48] = [48] {
   a5, e7, 6a, 4a, 0b, 3b, 13, df,
   2d, d9, 76, ae, 85, a8, 8d, b3,
   03, 5a, 29, 85, c5, 26, eb, 53,
   03, fe, 7a, c7, 6b, d4, 89, fe,
   f6, fd, 38, da, a2, c7, d6, 3d,
   78, a5, 2b, 54, 06, a9, ff, 2e
};
sfsagent: EOF from sfscd
sfsagent: exiting
broetchen-cs-umass-edu:~/src/build/build-O2 kevinfu$ sfskey:  
ACLNT_TRACE: call sfs_program_1:SFSPROC_CONNECT x=330056d6
sfs_connectinfo ARGS = {
   u_int32_t civers = 0x5;
   sfs_connectinfo_5 ci5 = {
     u_int32_t release = 0x8;
     sfs_service service = SFS_AUTHSERV;
     string sname<> = "snafu.lcs.mit.edu";
     string extensions<><> = [0] {};
   };
};
sfskey: ACLNT_TRACE: reply sfs_program_1:SFSPROC_CONNECT x=330056d6
sfs_connectres REPLY = {
   sfsstat status = SFS_OK;
   sfs_connectok reply = {
     sfs_servinfo servinfo = {
       u_int32_t sivers = 0x7;
       sfs_servinfo_7 cr7 = {
         u_int32_t release = 0x8;
         sfs_hostinfo2 host = {
           sfs_msgtype type = SFS_HOSTINFO;
           string hostname<222> = "snafu.lcs.mit.edu";
           u_int32_t port = 0x0;
           sfs_pubkey2 pubkey = {
             sfs_keytype type = SFS_RABIN;
             bigint rabin =  
1048420577470b612c06785883253f2a0b016b88f83908a408bd51923fc98ff955605f48 
bc094f1fef38109fdb8ba5b55a9feeab222e4500bae8a9933de63250738beb6ab884349f 
b4a50ec64f96b5091e046e6d5a660436d64d84013392959e1a48150cbe996408e0614a02 
6ed8b233c68a5fbb5826a5c13b525e8ad4953e5e5;
           };
         };
         u_int32_t prog = 0x2;
         u_int32_t vers = 0x0;
       };
     };
     sfs_hashcharge charge = {
       u_int32_t bitcost = 0x0;
       opaque target[20] = [20] {
         3d, f2, b5, 8e, b7, f9, 8e, fe,
         b1, e0, 81, 10, fa, e1, df, 38,
         df, 55, 34, a9
       };
     };
   };
};
sfskey: ACLNT_TRACE: call sfs_program_1:SFSPROC_ENCRYPT2 x=fcce4d12
sfs_encryptarg2 ARGS = {
   opaque payment[64] = [64] {
     6a, 57, 2a, a1, 51, 3e, 84, f7,
     c0, aa, 19, b1, 3e, 10, 54, 0f,
     98, 4f, 5b, be, 3c, 92, 0d, 6a,
     04, 4a, 39, 80, 5f, 4c, 4d, a8,
     20, c0, a9, 65, 10, 1e, fb, 12,
     34, be, 3e, 8a, f2, de, ca, c8,
     ...
   };
   sfs_ctext2 kmsg = {
     sfs_keytype type = SFS_RABIN;
     bigint rabin =  
f0b23e53e40c02c5385d8297e9c16b05cfe49082eabb3122910dee512fd935b4c7683c18 
f2a476415b83df07260e9bbc3c9baaa6e099bb1d7e93ea2418bf1d528c2d5892dd7fa558 
04316cd369bb2929a0ba2509fcd0c477b7896cfd19d9b4a3fd496642a133a35792832db7 
fddcd55f83775f7ecc7fb4ee912e0f294bf81515;
   };
   sfs_pubkey2 pubkey = {
     sfs_keytype type = SFS_RABIN;
     bigint rabin =  
1596caecf33d4132ed2baf2d335753f32981cedcf700939b7d552825af1fcecfd05b7da9 
b0e5a3f249fa3e2c417a86ef6f1025c2e38880886f826d459ff54958dc53ed345006812a 
c76151fe4904d7ad6c435c54e2bb0f89f6b35b441daa799552bed6b90d0f028ef010edc1 
c5ad0ac04b0c047536291420f4a65d44532132a35;
   };
};
sfskey: ACLNT_TRACE: reply sfs_program_1:SFSPROC_ENCRYPT2 x=fcce4d12
sfs_ctext2 REPLY = {
   sfs_keytype type = SFS_RABIN;
   bigint rabin =  
42d5e6f62594b988ec37a8b726b5587b972726933bd52742a405604438fbf50112a91f8c 
68626c7ce4f8bb0722b1c4dc9117d38faf903271234516f404686820100de0d14667c7c2 
d25b1f1e06e245b6115f1b5c46b450bf0751ad7045641e63ce7046bdb42fdeb1319e8dac 
6c70f5783135b7b474a8e329326d0e0f280b83c3;
};
sfskey: ACLNT_TRACE: call sfs_program_1:SFSPROC_LOGIN x=fd8585fa
sfs_loginarg ARGS = {
   u_int64_t seqno = 0x0;
   opaque certificate<> = [52] {
     00, 00, 00, 03, 00, 00, 00, 06,
     7e, 11, 02, 52, 08, 06, 2f, 4a,
     32, eb, 3e, 74, 0c, d8, a9, fc,
     81, 17, 2b, d4, 00, 00, 00, 00,
     00, 00, 00, 00, 00, 00, 00, 05,
     66, 75, 62, 6f, 62, 00, 00, 00,
     ...
   };
};
sfskey: ACLNT_TRACE: reply sfs_program_1:SFSPROC_LOGIN x=fd8585fa
sfs_loginres REPLY = {
   sfs_loginstat status = SFSLOGIN_MORE;
   opaque resmore<> = [196] {
     00, 00, 00, 2d, 31, 31, 24, 30,
     36, 6d, 52, 61, 6f, 61, 33, 34,
     33, 6f, 65, 6e, 37, 64, 59, 57,
     48, 52, 30, 51, 51, 3d, 3d, 24,
     73, 6e, 61, 66, 75, 2e, 6c, 63,
     73, 2e, 6d, 69, 74, 2e, 65, 64,
     ...
   };
};
sfskey: /dev/tty: Input/output error