48 #define ZFS_DELEG_PERM_RECEIVE "receive"
49 #define ZFS_DELEG_PERM_ALLOW "allow"
50 #define ZFS_DELEG_PERM_USERPROP "userprop"
51 #define ZFS_DELEG_PERM_VSCAN "vscan"
52 #define ZFS_DELEG_PERM_USERQUOTA "userquota"
53 #define ZFS_DELEG_PERM_GROUPQUOTA "groupquota"
54 #define ZFS_DELEG_PERM_USERUSED "userused"
55 #define ZFS_DELEG_PERM_GROUPUSED "groupused"
56 #define ZFS_DELEG_PERM_HOLD "hold"
57 #define ZFS_DELEG_PERM_RELEASE "release"
58 #define ZFS_DELEG_PERM_DIFF "diff"
59
60 /*
61 * Note: the names of properties that are marked delegatable are also
62 * valid delegated permissions
63 */
64
65 int dsl_deleg_get(const char *ddname, nvlist_t **nvp);
66 int dsl_deleg_set(const char *ddname, nvlist_t *nvp, boolean_t unset);
67 int dsl_deleg_access(const char *ddname, const char *perm, cred_t *cr);
68 int dsl_deleg_access_impl(struct dsl_dataset *ds, const char *perm, cred_t *cr);
69 void dsl_deleg_set_create_perms(dsl_dir_t *dd, dmu_tx_t *tx, cred_t *cr);
70 int dsl_deleg_can_allow(char *ddname, nvlist_t *nvp, cred_t *cr);
71 int dsl_deleg_can_unallow(char *ddname, nvlist_t *nvp, cred_t *cr);
72 int dsl_deleg_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx);
73 boolean_t dsl_delegation_on(objset_t *os);
74
75 #ifdef __cplusplus
76 }
77 #endif
78
79 #endif /* _SYS_DSL_DELEG_H */
|
48 #define ZFS_DELEG_PERM_RECEIVE "receive"
49 #define ZFS_DELEG_PERM_ALLOW "allow"
50 #define ZFS_DELEG_PERM_USERPROP "userprop"
51 #define ZFS_DELEG_PERM_VSCAN "vscan"
52 #define ZFS_DELEG_PERM_USERQUOTA "userquota"
53 #define ZFS_DELEG_PERM_GROUPQUOTA "groupquota"
54 #define ZFS_DELEG_PERM_USERUSED "userused"
55 #define ZFS_DELEG_PERM_GROUPUSED "groupused"
56 #define ZFS_DELEG_PERM_HOLD "hold"
57 #define ZFS_DELEG_PERM_RELEASE "release"
58 #define ZFS_DELEG_PERM_DIFF "diff"
59
60 /*
61 * Note: the names of properties that are marked delegatable are also
62 * valid delegated permissions
63 */
64
65 int dsl_deleg_get(const char *ddname, nvlist_t **nvp);
66 int dsl_deleg_set(const char *ddname, nvlist_t *nvp, boolean_t unset);
67 int dsl_deleg_access(const char *ddname, const char *perm, cred_t *cr);
68 int dsl_deleg_access_impl(struct dsl_dataset *ds, const char *perm, cred_t *cr,
69 boolean_t);
70 void dsl_deleg_set_create_perms(dsl_dir_t *dd, dmu_tx_t *tx, cred_t *cr);
71 int dsl_deleg_can_allow(char *ddname, nvlist_t *nvp, cred_t *cr);
72 int dsl_deleg_can_unallow(char *ddname, nvlist_t *nvp, cred_t *cr);
73 int dsl_deleg_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx);
74 boolean_t dsl_delegation_on(objset_t *os);
75
76 #ifdef __cplusplus
77 }
78 #endif
79
80 #endif /* _SYS_DSL_DELEG_H */
|