From c3695ab5f06af533deaf1de75cdd4631a9d77d00 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 28 May 2010 13:55:45 +0200 Subject: Added some initial for of key. Added helper functions to enforce per user and per process limits. --- cryptodev_main.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'cryptodev_main.c') diff --git a/cryptodev_main.c b/cryptodev_main.c index 50e5a27..da7ef2b 100644 --- a/cryptodev_main.c +++ b/cryptodev_main.c @@ -562,13 +562,6 @@ cryptodev_ioctl(struct inode *inode, struct file *filp, struct fcrypt * fcr; uint32_t ses; int ret, fd; - unsigned int uid; - -#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,27) - uid = filp->f_uid; -#else - uid = filp->f_cred->fsuid; -#endif if (unlikely(!pcr)) BUG(); @@ -601,7 +594,7 @@ cryptodev_ioctl(struct inode *inode, struct file *filp, return copy_to_user((void*)arg, &cop, sizeof(cop)); default: - return ncr_ioctl(uid, pcr->ncr, cmd, arg); + return ncr_ioctl(pcr->ncr, filp, cmd, arg); } } -- cgit