HomeFreeBSD

Pass caller's credential in zfsdev_ioctl()

Description

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.

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on May 20 2011, 5:12 PM
Parents
rG3fd70ee6b0bc: Fix 'negative objects to delete' warning
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGf01b360e6769: Pass caller's credential in zfsdev_ioctl() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).May 20 2011, 5:12 PM