Eric Biggers ba679017ef ext4: disable pwsalt ioctl when encryption disabled by config
On a CONFIG_EXT4_FS_ENCRYPTION=n kernel, the ioctls to get and set
encryption policies were disabled but EXT4_IOC_GET_ENCRYPTION_PWSALT was
not.  But there's no good reason to expose the pwsalt ioctl if the
kernel doesn't support encryption.  The pwsalt ioctl was also disabled
pre-4.8 (via ext4_sb_has_crypto() previously returning 0 when encryption
was disabled by config) and seems to have been enabled by mistake when
ext4 encryption was refactored to use fs/crypto/.  So let's disable it
again.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2016-12-01 11:55:51 -05:00
..
2015-04-02 23:47:42 -04:00
2016-09-30 02:14:56 -04:00
2016-12-01 11:54:18 -05:00
2016-09-05 23:21:43 -04:00
2015-04-02 23:47:42 -04:00
2016-05-13 00:44:16 -04:00
2016-11-22 23:21:58 -05:00
2016-03-09 23:49:05 -05:00
2016-07-31 23:38:36 -04:00