Thread (11 messages) 11 messages, 2 authors, 2016-12-28

Re: [RFC PATCH 5/5] fscrypt: pass up error codes from ->get_context()

From: Theodore Ts'o <tytso@mit.edu>
Date: 2016-12-28 03:27:07
Also in: linux-f2fs-devel, linux-fsdevel

On Mon, Dec 05, 2016 at 11:12:48AM -0800, Eric Biggers wrote:
It was possible for the ->get_context() operation to fail with a
specific error code, which was then not returned to the caller of
FS_IOC_SET_ENCRYPTION_POLICY or FS_IOC_GET_ENCRYPTION_POLICY.  Make sure
to pass through these error codes.  Also reorganize the code so that
->get_context() only needs to be called one time when setting an
encryption policy, and handle contexts of unrecognized sizes more
appropriately.

Signed-off-by: Eric Biggers <redacted>
Thanks, applied to the fscrypt branch.

					- Ted

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help