[LU-12267] sanity test_103a: some ACL tests fail with SELinux enforced Created: 07/May/19  Updated: 12/Sep/19  Resolved: 16/Jun/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.13.0, Lustre 2.12.3

Type: Bug Priority: Minor
Reporter: Maloo Assignee: Sebastien Buisson
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

sanity test_103a fails when SElinux is enforced on the client.

lrwxrwxrwx root root                  ? lrwxrwxrwx. root root                  
[68] $ su bin -- ok
[69] $ getfattr -d l -- ok
[78] $ su -- ok
[79] $ mkdir t -- ok
[80] $ chown nobody:nobody t -- ok
[81] $ chmod 1750 t -- ok
[82] $ ls -dl t | awk -- '{ print $1, $3, $4 }' -- failed
drwxr-x--T nobody nobody              ? drwxr-x--T. nobody nobody              
[84] $ su nobody -- ok
[85] $ setfacl -m g:bin:rwx t -- ok
[86] $ getfacl --omit-header t -- ok
[93] $ su bin -- ok
[94] $ setfattr -n user.test.xattr -v 654321 t -- ok
[101] $ su -- ok
[102] $ mkdir d -- ok
[103] $ chown nobody:nobody d -- ok
[104] $ chmod 750 d -- ok
[105] $ ls -dl d | awk -- '{ print $1, $3, $4 }' -- failed
drwxr-x--- nobody nobody              ? drwxr-x---. nobody nobody              
[107] $ su nobody -- ok
[108] $ setfacl -m g:bin:rwx d -- ok
[109] $ getfacl --omit-header d -- ok
[116] $ su bin -- ok
[117] $ setfattr -n user.test.xattr -v 654321 d -- ok
[118] $ getfattr -d d -- ok
[127] $ su -- ok
[128] $ mknod -m 0660 hdt b 91 64 -- ok
[129] $ mknod -m 0660 null c 1 3 -- ok
[130] $ mkfifo -m 0660 fifo -- ok
[131] $ setfattr -n user.test.xattr -v 123456 hdt -- ok
[133] $ setfattr -n user.test.xattr -v 123456 null -- ok
[135] $ setfattr -n user.test.xattr -v 123456 fifo -- ok
[141] $ su -- ok
[142] $ cd .. -- ok
[143] $ rm -rf d -- ok
53 commands (49 passed, 4 failed)
 sanity test_103a: @@@@@@ FAIL: permissions_xattr failed 

This issue relates to the following test suite run: https://testing.whamcloud.com/test_sets/84b99ac8-700d-11e9-8bb1-52540065bddc

VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV
sanity test_103a - permissions_xattr failed



 Comments   
Comment by Gerrit Updater [ 07/May/19 ]

Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/34818
Subject: LU-12267 tests: update filter in acl for SElinux case
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 97606566ddad7ed1bb804b130b9466f03203c81e

Comment by Gerrit Updater [ 29/May/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34818/
Subject: LU-12267 tests: update filter in acl for SElinux case
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 3f6294a482651802fb97175b6e8c6568a371352a

Comment by Peter Jones [ 29/May/19 ]

Landed for 2.13

Comment by James Nunez (Inactive) [ 31/May/19 ]

I'm reopening this ticket because the recently added sanity test 420 is failing with this same issue when SELinux is enabled. I'll upload a patch to fix this test.

Examples of this failure at
https://testing.whamcloud.com/test_sets/fc1ba8bc-826f-11e9-af1f-52540065bddc
https://testing.whamcloud.com/test_sets/4d12d196-8257-11e9-af1f-52540065bddc

Comment by Gerrit Updater [ 31/May/19 ]

James Nunez (jnunez@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35026
Subject: LU-12267 tests: filter trailing '.' for SELinux
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1064c70d32aae2a0d7f432bfcdae3d97e7dca23e

Comment by Gerrit Updater [ 16/Jun/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35026/
Subject: LU-12267 tests: filter trailing '.' for SELinux
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f000996069acc7d535b7574a9d9a4ab65e753ff0

Comment by Peter Jones [ 16/Jun/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 28/Aug/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35957
Subject: LU-12267 tests: update filter in acl for SElinux case
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 24e43d4801e1f1dc28cb3b104341d6af651af798

Comment by Gerrit Updater [ 28/Aug/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35958
Subject: LU-12267 tests: filter trailing '.' for SELinux
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 2c695d0b41c1f9c17bb86cbed423a79c055dffa1

Comment by Gerrit Updater [ 12/Sep/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35958/
Subject: LU-12267 tests: filter trailing '.' for SELinux
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 0a47dcf9b048be724169894dcad7d9cde54362ec

Comment by Gerrit Updater [ 12/Sep/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35957/
Subject: LU-12267 tests: update filter in acl for SElinux case
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: b17f4ae323ac35d38a3f89004a46603d0932d767

Generated at Sat Feb 10 02:51:05 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.