Charles.Forsyth20060303-partialeea662d19 years agoHistory
148 lines · 2.9 KB · Text
RawDownload
.TH IMPORT 4.SH NAMEimport, 9export \- exchange name spaces with a Plan 9 system.SH SYNOPSIS.B import[.B -ab] [.B -c] [.BI -k " keyspec"] [.BI -e " crypt hash"].I host.I file[.I localfile].PP.B 9export[.B -A] [.BI -k " keyspec"] [.BI -e " crypt hash"].SH DESCRIPTION.I Importdials the Plan 9.I host(which might be the current host) and makes the given.I fileon that system visible in the local name space as.I localfile(if.I localfileis not given,.I fileis used as the local name).It requires that the user's Plan 9 authentication agent,.IR factotum ,appear in the Inferno name space at.BR /mnt/factotum .(That is why.I importis currently limited to use when Inferno is hosted on Plan 9,until Inferno has an equivalent to.IR factotum .)The remote files are accessed with the permissions of the user authenticatedto the remote system by.IR factotum ..PPIf the remote.I fileis a directory, the whole file tree rooted at thatdirectory is accessible, the local mount point must also be a directory,and the.BR -a ,.BR -b ,and.B -coptions control the creation of union directories just as for.IR bind (1).By default, the remote file replaces the local one in the name space..PPIf the.B -eoption is given, the network connection can be encrypted, or providedwith digests to authenticate the contents, or both..I Cryptis an encryption algorithm accepted by.IR ssl (3);.I hashis one of its digest algorithms.Plan 9's.I exportfsnormally requires.B\&'rc4_256 sha1'on such connections;it currently provides no negotiation of algorithms..PPThe.B -koption gives a string of space separated.IB attr = valuepairs that control.IR factotum 'sselection of a suitable key for the remote system..PP.I 9exportserves the Plan 9.I exportfsprotocol on its standard input,allowing a Plan 9 system to import parts of the Inferno name space in which.I 9exportis run.If the.B -Aoption is given, the caller is not authenticated, line encryption and message authenticationare not done,and the Plan 9.I exportfsprotocol starts immediately.Otherwise, the Plan 9 authentication agent.I factotummust be accessible via.B /mnt/factotumas for.IR import ,and it is used to run the Plan 9 authentication protocol.The.B -eand.B -koptions are as for.IR import .Normally.I 9exportreturns when the client closes the connection; the.B -aoption causes.I 9exportto return immediately, leaving a kernel process to serve the name space..I 9exportmight be used as follows:.IP.EXlisten -Av 'tcp!*!exportfs' {9export&}.EE.PPBeware that currently the name space is served with the permissions of theperson running.IR 9export ,not those of the caller..SH SOURCE.B /appl/cmd/9export.b.br.B /appl/cmd/import.b.SH SEE ALSO.IR bind (1),.IR factotum (2),.IR export (4),.IR namespace (6).SH BUGSTemporarily limited to Plan 9 hosted environment only.