aboutsummaryrefslogtreecommitdiff
path: root/lib/e2p/ls.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-03-28 20:15:02 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-03-28 20:15:02 -0400
commit41f2210131cfbaa4059cebae3a9b0f104fe89f70 (patch)
tree0eb6a1cf3151b972373b975370174beb8d5a28bf /lib/e2p/ls.c
parentbfa4b350b1710f74c7c4e232392227b70c21a4d4 (diff)
downloade2fsprogs-41f2210131cfbaa4059cebae3a9b0f104fe89f70.tar.gz
Add support for a password salt stored in the superblock
Previously, e4crypt required the user to manually specify the salt used for their passphrase. This was user unfriendly to say the least. The e4crypt program can now request the salt using an ioctl, which will automatically generate the salt if necessary, and keep it in the ext4 superblock. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'lib/e2p/ls.c')
-rw-r--r--lib/e2p/ls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/e2p/ls.c b/lib/e2p/ls.c
index a7ea38a4..2e98c14e 100644
--- a/lib/e2p/ls.c
+++ b/lib/e2p/ls.c
@@ -447,6 +447,9 @@ void list_super2(struct ext2_super_block * sb, FILE *f)
fprintf(f, "Checksum: 0x%08x\n",
sb->s_checksum);
}
+ if (!e2p_is_null_uuid(sb->s_encrypt_pw_salt))
+ fprintf(f, "Encryption PW Salt: %s\n",
+ e2p_uuid2str(sb->s_encrypt_pw_salt));
}
void list_super (struct ext2_super_block * s)