854
855 int
856 z_compress_level(void *dst, size_t *dstlen, const void *src, size_t srclen,
857 int level)
858 {
859 int ret;
860 uLongf len = *dstlen;
861
862 if ((ret = compress2(dst, &len, src, srclen, level)) == Z_OK)
863 *dstlen = (size_t)len;
864
865 return (ret);
866 }
867
868 uid_t
869 crgetuid(cred_t *cr)
870 {
871 return (0);
872 }
873
874 gid_t
875 crgetgid(cred_t *cr)
876 {
877 return (0);
878 }
879
880 int
881 crgetngroups(cred_t *cr)
882 {
883 return (0);
884 }
885
886 gid_t *
887 crgetgroups(cred_t *cr)
888 {
889 return (NULL);
890 }
891
892 int
893 zfs_secpolicy_snapshot_perms(const char *name, cred_t *cr)
|
854
855 int
856 z_compress_level(void *dst, size_t *dstlen, const void *src, size_t srclen,
857 int level)
858 {
859 int ret;
860 uLongf len = *dstlen;
861
862 if ((ret = compress2(dst, &len, src, srclen, level)) == Z_OK)
863 *dstlen = (size_t)len;
864
865 return (ret);
866 }
867
868 uid_t
869 crgetuid(cred_t *cr)
870 {
871 return (0);
872 }
873
874 uid_t
875 crgetruid(cred_t *cr)
876 {
877 return (0);
878 }
879
880 gid_t
881 crgetgid(cred_t *cr)
882 {
883 return (0);
884 }
885
886 int
887 crgetngroups(cred_t *cr)
888 {
889 return (0);
890 }
891
892 gid_t *
893 crgetgroups(cred_t *cr)
894 {
895 return (NULL);
896 }
897
898 int
899 zfs_secpolicy_snapshot_perms(const char *name, cred_t *cr)
|