Revert "ioctl: move the write check into the drivers"
authorAlan Cox <alan@linux.intel.com>
Sun, 24 Jul 2016 10:50:08 +0000 (11:50 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 24 Jul 2016 10:50:08 +0000 (11:50 +0100)
commit1b5388fae35b565a53c8ef933db678a94aebcbea
tree158405ef35511bcf0f0a26a64a54b2282bd5fd46
parent12895c2f2fbc55bbf7ddb88e0ef0f22ed39a51f5
Revert "ioctl: move the write check into the drivers"

This reverts commit c2c9fa5c6bb4ae5a7cbb5fb51b42ca5ce4d4d832.

Can't do it this way because we need to care about file handle permissions
at driver level and we deliberately don't pass all the handles down
Kernel/dev/blkdev.c
Kernel/syscall_fs.c