[LU-13742] Provide an selinux_is_enabled for newer kernels Created: 02/Jul/20  Updated: 14/Dec/21  Resolved: 13/Aug/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.14.0, Lustre 2.12.5
Fix Version/s: Lustre 2.14.0, Lustre 2.12.6

Type: Bug Priority: Major
Reporter: Shaun Tancheff Assignee: Shaun Tancheff
Resolution: Fixed Votes: 0
Labels: None
Environment:

RHEL/CentOS 8, Linux 5.1


Issue Links:
Related
is related to LU-6784 Defects in SELinux support Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Some special handling for selinux xattrs was broken when selinux_is_enabled was removed and CONFIG_SECURITY_SELINUX is enabled.

Provide a replacement for selinux_is_enabled.



 Comments   
Comment by Gerrit Updater [ 02/Jul/20 ]

Shaun Tancheff (shaun.tancheff@hpe.com) uploaded a new patch: https://review.whamcloud.com/39244
Subject: LU-13742 llite: provide an selinux_is_enabled replacement
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 630cfd4f335b5aefef6e710ef3e8b56480d0c9d7

Comment by Sebastien Buisson [ 09/Jul/20 ]

Raising priority as this impacts CentOS/RHEL 8.

Comment by Gerrit Updater [ 04/Aug/20 ]

Shaun Tancheff (shaun.tancheff@hpe.com) uploaded a new patch: https://review.whamcloud.com/39569
Subject: LU-13742 llite: conditionally ignore selinux negative caching
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 718e501e83539376f57283af220c7344f65b7710

Comment by Gerrit Updater [ 13/Aug/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39569/
Subject: LU-13742 llite: do not bypass selinux xattr handling
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 994287bd47819ebd8badb716da4232cdff97d324

Comment by Peter Jones [ 13/Aug/20 ]

Landed for 2.14

Comment by Gerrit Updater [ 13/Aug/20 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/39671
Subject: LU-13742 llite: do not bypass selinux xattr handling
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: d67984456024cb83022244236518366a251d2d37

Comment by Gerrit Updater [ 01/Sep/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39671/
Subject: LU-13742 llite: do not bypass selinux xattr handling
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: d657c96e35e8b05df111745d6e540aaf16a0c1c9

Generated at Sat Feb 10 03:03:49 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.