ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * CDDL HEADER START
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * The contents of this file are subject to the terms of the
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * Common Development and Distribution License (the "License").
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * You may not use this file except in compliance with the License.
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * See the License for the specific language governing permissions
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * and limitations under the License.
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * When distributing Covered Code, include this CDDL HEADER in each
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * If applicable, add the following below this CDDL HEADER, with the
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * fields enclosed by brackets "[]" replaced with your own identifying
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * information: Portions Copyright [yyyy] [name of copyright owner]
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * CDDL HEADER END
a7f53a5629374ca27c5696ace9a1946c2ca050f4Chris Kirby * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
78f171005391b928aaf1642b3206c534ed644332Matthew Ahrens * Copyright (c) 2013 by Delphix. All rights reserved.
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarksextern "C" {
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#define ZFS_DELEG_PERM_GROUPQUOTA "groupquota"
91ebeef555ce7f899b6270a3c2df47b51f7ad59aahrens * Note: the names of properties that are marked delegatable are also
91ebeef555ce7f899b6270a3c2df47b51f7ad59aahrens * valid delegated permissions
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarksint dsl_deleg_set(const char *ddname, nvlist_t *nvp, boolean_t unset);
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarksint dsl_deleg_access(const char *ddname, const char *perm, cred_t *cr);
4445fffbbb1ea25fd0e9ea68b9380dd7a6709025Matthew Ahrensint dsl_deleg_access_impl(struct dsl_dataset *ds, const char *perm, cred_t *cr);
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarksvoid dsl_deleg_set_create_perms(dsl_dir_t *dd, dmu_tx_t *tx, cred_t *cr);
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarksint dsl_deleg_can_allow(char *ddname, nvlist_t *nvp, cred_t *cr);
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarksint dsl_deleg_can_unallow(char *ddname, nvlist_t *nvp, cred_t *cr);
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarksint dsl_deleg_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx);
91ebeef555ce7f899b6270a3c2df47b51f7ad59aahrens#endif /* _SYS_DSL_DELEG_H */