Advertisement
ffilz

Untitled

Jun 13th, 2017
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.13 KB | None | 0 0
  1. diff --git a/src/FSAL/fsal_helper.c b/src/FSAL/fsal_helper.c
  2. index 37c6f1f..c517715 100644
  3. --- a/src/FSAL/fsal_helper.c
  4. +++ b/src/FSAL/fsal_helper.c
  5. @@ -231,7 +231,12 @@ static fsal_status_t fsal_check_setattr_perms(struct fsal_obj_handle *obj,
  6.                                     "Change OWNER requires FSAL_ACE_PERM_WRITE_OWNER");
  7.                 }
  8.         }
  9. -       if (FSAL_TEST_MASK(attr->valid_mask, ATTR_GROUP)) {
  10. +       /* Check if we are changing the owner_group, if owner_group is passed,
  11. +        * but is the current owner_group, then that will be considered a
  12. +        * NO-OP and allowed.
  13. +        */
  14. +       if (FSAL_TEST_MASK(attr->valid_mask, ATTR_GROUP) &&
  15. +           attr->group != current->group) {
  16.                 /* non-root is only allowed to change group_owner to a group
  17.                  * user is a member of. */
  18.                 int not_in_group = fsal_not_in_group_list(attr->group);
  19. diff --git a/src/libntirpc b/src/libntirpc
  20. --- a/src/libntirpc
  21. +++ b/src/libntirpc
  22. @@ -1 +1 @@
  23. -Subproject commit 5575ddb022b996c318d263e504273ee6a34499a3
  24. +Subproject commit 5575ddb022b996c318d263e504273ee6a34499a3-dirty
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement