Project

General

Profile

Actions

Bug #12022

closed

zfs test zfs_acl_chmod_inherit_003_pos fails

Added by Jason King over 3 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tests
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Running zfs_acl_chmod_inherit_003_pos, the following portion of it fails, leading to a failed test:

13:30:39.35 SUCCESS: usr_exec mkdir /var/tmp/testdir/basedir
13:30:39.38 SUCCESS: usr_exec mkdir /var/tmp/testdir/odir
13:30:39.41 SUCCESS: usr_exec touch /var/tmp/testdir/ofile
13:30:39.45 SUCCESS: usr_exec chmod A+everyone@:-------A-W----:-d-----:deny /var/tmp/testdir/basedir
13:30:39.48 SUCCESS: usr_exec chmod A+group@:-------A-W----:-d-----:allow /var/tmp/testdir/basedir
13:30:39.50 SUCCESS: usr_exec chmod A+owner@:-------A-W----:-d-----:deny /var/tmp/testdir/basedir
13:30:39.53 SUCCESS: usr_exec chmod A+everyone@:-------A-W-Co-:-d-----:allow /var/tmp/testdir/basedir
13:30:39.56 SUCCESS: usr_exec chmod A+group@:-------A-W-Co-:-d-----:deny /var/tmp/testdir/basedir
13:30:39.58 SUCCESS: usr_exec chmod A+owner@:-------A-W-Co-:-d-----:allow /var/tmp/testdir/basedir
13:30:39.62 mkdir: "/var/tmp/testdir/basedir/ndir1/ndir2/ndir3": Permission denied
13:30:39.62 ERROR: usr_exec mkdir -p /var/tmp/testdir/basedir/ndir1/ndir2/ndir3 exited 2

The error happens when dataset has property aclinherit=passthrough, the current user is set to non-root.

The problem there is that non-root user was set no permissions (other than AW and Co),
that is the reason why mkdir is reporting permission denied. Adding owner to have rwxp
does allow mkdir to succeed and test can complete with SUCCESS.

Testing done: run zfstest.

Test: /opt/zfs-tests/tests/functional/acl/nontrivial/zfs_acl_chmod_inherit_003_pos (run as root) [00:29] [PASS]


Related issues

Has duplicate illumos gate - Bug #12180: zfs-test zfs_acl_chmod_inherit_003_pos can failDuplicate

Actions
Actions #1

Updated by Andy Fiddaman about 2 years ago

  • Has duplicate Bug #12180: zfs-test zfs_acl_chmod_inherit_003_pos can fail added
Actions #2

Updated by Toomas Soome 5 months ago

  • Description updated (diff)
  • Status changed from New to In Progress
  • Assignee set to Toomas Soome
  • % Done changed from 0 to 90
Actions #3

Updated by Electric Monk 5 months ago

  • Gerrit CR set to 2588
Actions #4

Updated by Toomas Soome 5 months ago

  • Description updated (diff)
Actions #5

Updated by Toomas Soome 5 months ago

  • Status changed from In Progress to Pending RTI
Actions #6

Updated by Electric Monk 5 months ago

  • % Done changed from 90 to 100
  • Status changed from Pending RTI to Closed

git commit b4f6c3d20fd867bdfbe071b4269308946de60118

commit  b4f6c3d20fd867bdfbe071b4269308946de60118
Author: Toomas Soome <tsoome@me.com>
Date:   2023-01-07T13:43:13.000Z

    12022 zfs test zfs_acl_chmod_inherit_003_pos fails
    Reviewed by: Andy Fiddaman <illumos@fiddaman.net>
    Reviewed by: Andy Stormont <andyjstormont@gmail.com>
    Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Actions

Also available in: Atom PDF