Charles.Forsyth20060303-partialeea662d19 years agoHistory
92 lines · 2.4 KB · Text
RawDownload
.TH SIGN 3.SH NAMEsign \- control use of signed modules.SH SYNOPSIS.B "bind -a #Σ /dev".PP.B /dev/signerkey.br.B /dev/signctl.SH DESCRIPTION.I Signis a device, still experimental, tocontrol the use of signed Dis modules.After system initialisation, any process can load any module.Using.IR sign ,.B loadoperations can subsequently be restricted for a process and its descendents..PP.B Signerkeyis a file that can be opened for writing only  by the host owner(see.IR eve (10.2))(but any process holding the file descriptor can write to it).The data written must be the textual representation of a public key in the form produced by.B Keyring->pktostr(see.IR keyring-certtostr (2)).After a successful write, subsequent.B loadoperations will be limited to Dis modules in any of the following sets:.IP •built-in modules.IP •unsigned modules found in the kernel's.IR root (3)file system.IP •currently loaded unsigned modules.IP •acceptable signed modules.PPA signed Dis module contains a signature in its header, as specified by.IR dis (6).The signature contains the result of signing theremaining data in the file (or more precisely, a cryptographically secure hash of it), usinga configured public key algorithm and the signer's secret key(for instance using.BR Keyring->sign ,see.IR keyring-sha1 (2))..PPA signed module is `acceptable' if it was signed by the secret key corresponding to oneof the public keys written to.BR signerkey .There can be up to 8 such keys.The set of keys and the secured status is shared across.BR spawn ..PP.B Signerkeyis generally readable, and when read yields a list of the keys installed, one per line,showing.BR owner ,.BR alg ,and other attributes in.IB attr = valueformat, space separated.The actual key value is not currently shown..PP.B Signctlcan be read or written only by the host owner.Each write contains a textual control request.(Currently there are none such.)If security is not enabled, it is empty when read.Otherwise, it contains the number of keys loaded, as a decimal integer..SH SOURCE.B /emu/port/devsign.c.br.B /os/port/devsign.c.SH SEE ALSO.B wm/rtin.IR wm-misc (2),.IR sys-pctl (2),.IR dis (6),.IR createsignerkey (8),.IR eve (10.2).SH DIAGNOSTICSIf the text is not a valid public key or uses an algorithm that is not configured,a write to.B signerfails and sets the error string.