dsl_deleg.h revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0
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
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks * Use is subject to license terms.
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks#pragma ident "%Z%%M% %I% %E% SMI"
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarksextern "C" {
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);
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 */