| KEYFS(4) | Device Drivers Manual | KEYFS(4) |
keyfs - encrypted key storage
auth/keyfs [ -D ] [ -m mountpoint ] [ -n nvram ] [ keyfile ]
Keyfs serves a two-level name space for storing authentication data, specifically the status and secrets of each user to whom logind (8) can issue a certificate. The data is stored in keyfile (default: /keydb/keys), encrypted by a master key using AES (see keyring-crypt (2)). Keyfs should be started only on the machine acting as authentication server (signer), before a listener is started for signer (8). Note that signer and keyfs must share the name space. Furthermore, no other application except the console should see that name space.
Keyfs prompts for the master key, reads and decrypts keyfile, and serves files representing the contents at mountpoint in the name space (default: /mnt/keys).
Each user in keyfile is represented by a directory mountpoint/user. Each such directory has the following files:
To add a new account, make a directory with that name in mountpoint. It must not already exist. To remove an account, remove the corresponding directory; to rename an account, rename the directory.
All changes made via file system operations in mountpoint result in appropriate changes to keyfile.
If the -n option is given, instead of prompting for the master key, keyfs will read it from the file nvram. Obviously that file should be well-protected from ordinary observers.
The -D option enables tracing of the file service protocol, for debugging.
/appl/cmd/auth/keyfs.b