diff options
author | Tyler Hicks <tyhicks@linux.vnet.ibm.com> | 2009-11-03 11:45:11 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-13 13:30:51 -0700 |
commit | 46c7e62e6b5fd85c82c660249ab411773f6450c1 (patch) | |
tree | e56d10d4a4872b524f616d0b86befd73f204fc03 /fs/ecryptfs/keystore.c | |
parent | eff3960f25026fbeb854303535974491a5afba13 (diff) |
eCryptfs: Handle ioctl calls with unlocked and compat functions
commit c43f7b8fb03be8bcc579bfc4e6ab70eac887ab55 upstream.
Lower filesystems that only implemented unlocked_ioctl weren't being
passed ioctl calls because eCryptfs only checked for
lower_file->f_op->ioctl and returned -ENOTTY if it was NULL.
eCryptfs shouldn't implement ioctl(), since it doesn't require the BKL.
This patch introduces ecryptfs_unlocked_ioctl() and
ecryptfs_compat_ioctl(), which passes the calls on to the lower file
system.
https://bugs.launchpad.net/ecryptfs/+bug/469664
Reported-by: James Dupin <james.dupin@gmail.com>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/ecryptfs/keystore.c')
0 files changed, 0 insertions, 0 deletions