Whamcloud - gitweb
LU-1403 ucred: ucred cleanup
[fs/lustre-release.git] / lustre / include / lu_object.h
index 953c34c..6e25c73 100644 (file)
@@ -1280,6 +1280,26 @@ int  lu_env_refill_by_tags(struct lu_env *env, __u32 ctags, __u32 stags);
 
 /** @} lu_context */
 
+struct lu_ucred {
+       __u32               uc_valid;
+       __u32               uc_o_uid;
+       __u32               uc_o_gid;
+       __u32               uc_o_fsuid;
+       __u32               uc_o_fsgid;
+       __u32               uc_uid;
+       __u32               uc_gid;
+       __u32               uc_fsuid;
+       __u32               uc_fsgid;
+       __u32               uc_suppgids[2];
+       cfs_cap_t           uc_cap;
+       __u32               uc_umask;
+       cfs_group_info_t   *uc_ginfo;
+       struct md_identity *uc_identity;
+};
+struct lu_ucred *lu_ucred(const struct lu_env *env);
+struct lu_ucred *lu_ucred_check(const struct lu_env *env);
+struct lu_ucred *lu_ucred_assert(const struct lu_env *env);
+
 /**
  * Output site statistical counters into a buffer. Suitable for
  * ll_rd_*()-style functions.