2015-03-30 14:11:53 +08:00
|
|
|
.TH E4CRYPT 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
|
2015-02-07 08:30:11 +08:00
|
|
|
.SH NAME
|
|
|
|
e4crypt \- ext4 filesystem encryption utility
|
|
|
|
.SH SYNOPSIS
|
2017-12-14 15:13:12 +08:00
|
|
|
.B e4crypt add_key -S \fR[\fB -k \fIkeyring\fR ] [\fB-v\fR] [\fB-q\fR] \fR[\fB -p \fIpad\fR ] [ \fIpath\fR ... ]
|
2016-05-09 10:12:41 +08:00
|
|
|
.br
|
|
|
|
.B e4crypt new_session
|
2015-02-07 08:30:11 +08:00
|
|
|
.br
|
2016-05-09 10:12:41 +08:00
|
|
|
.B e4crypt get_policy \fIpath\fR ...
|
|
|
|
.br
|
2017-12-14 15:13:12 +08:00
|
|
|
.B e4crypt set_policy \fR[\fB -p \fIpad\fR ] \fIpolicy path\fR ...
|
2015-02-07 08:30:11 +08:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B e4crypt
|
|
|
|
performs encryption management for ext4 file systems.
|
2015-03-30 14:11:53 +08:00
|
|
|
.SH COMMANDS
|
2015-02-07 08:30:11 +08:00
|
|
|
.TP
|
2018-01-02 05:29:56 +08:00
|
|
|
.B e4crypt add_key \fR[\fB-vq\fR] [\fB-S\fI salt\fR ] [\fB-k \fIkeyring\fR ] [\fB -p \fIpad\fR ] [ \fIpath\fR ... ]
|
2015-03-30 14:11:53 +08:00
|
|
|
Prompts the user for a passphrase and inserts it into the specified
|
|
|
|
keyring. If no keyring is specified, e4crypt will use the session
|
|
|
|
keyring if it exists or the user session keyring if it does not.
|
|
|
|
.IP
|
2018-01-02 05:29:56 +08:00
|
|
|
The
|
|
|
|
.I salt
|
|
|
|
argument is interpreted in a number of different ways, depending on how
|
|
|
|
its prefix value. If the first two characters are "s:", then the rest
|
|
|
|
of the argument will be used as an text string and used as the salt
|
|
|
|
value. If the first two characters are "0x", then the rest of the
|
|
|
|
argument will be parsed as a hex string as used as the salt. If the
|
|
|
|
first characters are "f:" then the rest of the argument will be
|
|
|
|
interpreted as a filename from which the salt value will be read. If
|
|
|
|
the string begins with a '/' character, it will similarly be treated as
|
|
|
|
filename. Finally, if the
|
|
|
|
.I salt
|
|
|
|
argument can be parsed as a valid UUID, then the UUID value will be used
|
|
|
|
as a salt value.
|
|
|
|
.IP
|
|
|
|
The
|
|
|
|
.I keyring
|
|
|
|
argument specifies the keyring to which the key should be added.
|
|
|
|
.IP
|
|
|
|
The
|
|
|
|
.I pad
|
|
|
|
value specifies the number of bytes of padding will be added to
|
|
|
|
directory names for obfuscation purposes. Valid
|
|
|
|
.I pad
|
|
|
|
values are 4, 8, 16, and 32.
|
|
|
|
.IP
|
2015-03-30 14:11:53 +08:00
|
|
|
If one or more directory paths are specified, e4crypt will try to
|
2018-01-02 05:29:56 +08:00
|
|
|
set the policy of those directories to use the key just added by the
|
|
|
|
.B add_key
|
2020-07-07 16:27:30 +08:00
|
|
|
command. If a salt was explicitly specified, then it will be used
|
|
|
|
to derive the encryption key of those directories. Otherwise a
|
|
|
|
directory-specific default salt will be used.
|
2015-02-07 08:30:11 +08:00
|
|
|
.TP
|
2016-05-09 10:12:41 +08:00
|
|
|
.B e4crypt get_policy \fIpath\fR ...
|
|
|
|
Print the policy for the directories specified on the command line.
|
|
|
|
.TP
|
2015-03-30 14:11:53 +08:00
|
|
|
.B e4crypt new_session
|
|
|
|
Give the invoking process (typically a shell) a new session keyring,
|
|
|
|
discarding its old session keyring.
|
2015-02-07 08:30:11 +08:00
|
|
|
.TP
|
2017-12-14 15:13:12 +08:00
|
|
|
.B e4crypt set_policy \fR[\fB -p \fIpad\fR ] \fIpolicy path\fR ...
|
2015-03-30 14:11:53 +08:00
|
|
|
Sets the policy for the directories specified on the command line.
|
2015-02-07 08:30:11 +08:00
|
|
|
All directories must be empty to set the policy; if the directory
|
2016-05-09 10:12:41 +08:00
|
|
|
already has a policy established, e4crypt will validate that the
|
2015-03-30 14:11:53 +08:00
|
|
|
policy matches what was specified. A policy is an encryption key
|
|
|
|
identifier consisting of 16 hexadecimal characters.
|
2015-02-07 08:30:11 +08:00
|
|
|
.SH AUTHOR
|
2015-03-30 14:11:53 +08:00
|
|
|
Written by Michael Halcrow <mhalcrow@google.com>, Ildar Muslukhov
|
|
|
|
<muslukhovi@gmail.com>, and Theodore Ts'o <tytso@mit.edu>
|
2015-02-07 08:30:11 +08:00
|
|
|
.SH SEE ALSO
|
2015-03-30 14:11:53 +08:00
|
|
|
.BR keyctl (1),
|
2015-02-07 08:30:11 +08:00
|
|
|
.BR mke2fs (8),
|
|
|
|
.BR mount (8).
|