diff options
Diffstat (limited to 'usr/src/uts/common/os/policy.c')
-rw-r--r-- | usr/src/uts/common/os/policy.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/src/uts/common/os/policy.c b/usr/src/uts/common/os/policy.c index 8c0b61a6c5..a5b011a3f8 100644 --- a/usr/src/uts/common/os/policy.c +++ b/usr/src/uts/common/os/policy.c @@ -1761,3 +1761,15 @@ secpolicy_gart_map(const cred_t *cr) } return (0); } + +/* + * secpolicy_zfs + * + * Determine if the user has permission to manipulate ZFS datasets (not pools). + * Equivalent to the SYS_MOUNT privilege. + */ +int +secpolicy_zfs(const cred_t *cr) +{ + return (PRIV_POLICY(cr, PRIV_SYS_MOUNT, B_FALSE, EPERM, NULL)); +} |