Skip to content

Commit

Permalink
Patch out crgetzoneid() (don't pull)
Browse files Browse the repository at this point in the history
Patch out crgetzoneid(cr) until the appropriate stub can be added to
zfsonlinux/spl:include/sys/zone.h (?)
  • Loading branch information
chrisrd committed Apr 2, 2015
1 parent 8a29907 commit 49ce3ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/zfs/dsl_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,10 @@ dsl_enforce_ds_ss_limits(dsl_dir_t *dd, zfs_prop_t prop, cred_t *cr)
prop == ZFS_PROP_SNAPSHOT_LIMIT);

#ifdef _KERNEL
#if 0
if (crgetzoneid(cr) != GLOBAL_ZONEID)
return (ENFORCE_ALWAYS);
#endif

if (secpolicy_zfs(cr) == 0)
return (ENFORCE_NEVER);
Expand Down

0 comments on commit 49ce3ad

Please sign in to comment.