Pass caller's credential in zfsdev_ioctl()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 20 May 2011 17:12:25 +0000 (10:12 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 20 May 2011 17:12:25 +0000 (10:12 -0700)
commitf01b360e67696fff002f5e2b9cf6eedf5ff84f4a
treef1a6dd36b136474ff1365d327e972bf7839481b0
parent3fd70ee6b0bc9fa74b7ef87657b9cc3b0304f689
Pass caller's credential in zfsdev_ioctl()

Initially when zfsdev_ioctl() was ported to Linux we didn't have
any credential support implemented.  So at the time we simply
passed NULL which wasn't much of a problem since most of the
secpolicy code was disabled.

However, one exception is quota handling which does require the
credential.  Now that proper credentials are supported we can
safely start passing the callers credential.  This is also an
initial step towards fully implemented the zfs secpolicy.
module/zfs/zfs_ioctl.c