|
|
Create regfile
and assign appropriate permissions and ownership
by running the following:
# touch regfile
# chmod 660 regfile
# chown root regfile
# chgrp appgrp regfile
The blksz is the maximum size of the married device, in 512-byte blocks, plus 5 blocks for encryption information. So, if you want a filesystem with a maximum size of 10,000 512-byte blocks, use 10,005 for blksz. The passphrase (similar to a password, but longer) is used to generate the keys that encrypt and decrypt the contents of regfile. See the marry(ADM) manual page for a full explanation of passphrase.
Note that $cryptfs is the output of the marry command from the previous step. Also note that the block size used in the mkfs command must be 5 blocks less than the blksz used in the previous marry command.
Please note that an encrypted filesystem requires more system overhead than a regular filesystem; this can have a significant effect on performance, depending on the intended use of the encrypted filesystem. See the marry(ADM) and marry(HW) manual pages for more information, including the limitations of this interface.