ecryptfs: propagate key errors up at mount time
authorEric Sandeen <sandeen@redhat.com>
Thu, 24 Jul 2008 04:30:04 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:31 +0000 (10:47 -0700)
commit982363c97f8cad7aea4c3d2cfebffc1cc2d2f166
tree63459c8ea40c1f45f7a4e14b0630829ab2a43afc
parent6c4c17b073cd4a5a61bc04329561632870bb21fc
ecryptfs: propagate key errors up at mount time

Mounting with invalid key signatures should probably fail, if they were
specifically requested but not available.

Also fix case checks in process_request_key_err() for the right sign of
the errnos, as spotted by Jan Tluka.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Jan Tluka <jtluka@redhat.com>
Acked-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/keystore.c
fs/ecryptfs/main.c