Description of problem: F737, XFCE has unecessary dependency on mdadm. mdadm defaults to enable raid-check.service even when mdadm not used. raid-check script violates som SEL oplicy while (unecessarily) accessing user data directory. SELinux is preventing raid-check from 'search' accesses on the directory /home/common. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that raid-check should be allowed search access on the common directory by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'raid-check' --raw | audit2allow -M my-raidcheck # semodule -X 300 -i my-raidcheck.pp Additional Information: Source Context system_u:system_r:mdadm_t:s0 Target Context unconfined_u:object_r:user_home_dir_t:s0 Target Objects /home/common [ dir ] Source raid-check Source Path raid-check Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-37.19-1.fc37.noarch Local Policy RPM selinux-policy-targeted-37.19-1.fc37.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 6.2.8-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 22 19:11:02 UTC 2023 x86_64 x86_64 Alert Count 16 First Seen 2023-02-26 01:00:05 EST Last Seen 2023-04-16 04:44:15 EDT Local ID 0ba9cca0-f048-4cce-b420-b9bcb195bf03 Raw Audit Messages type=AVC msg=audit(1681634655.183:3460): avc: denied { search } for pid=192258 comm="raid-check" name="common" dev="dm-0" ino=264 scontext=system_u:system_r:mdadm_t:s0 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir permissive=0 Hash: raid-check,mdadm_t,user_home_dir_t,dir,search Version-Release number of selected component: selinux-policy-targeted-37.19-1.fc37.noarch Additional info: component: selinux-policy reporter: libreport-2.17.4 hashmarkername: setroubleshoot kernel: 6.2.8-200.fc37.x86_64 type: libreport
The issue is that the (unnecessary) systemd unit uses bash, and bash has built-in PATH value that accessed 'common' via a link. Please close.
This message is a reminder that Fedora Linux 37 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '37'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 37 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Fedora Linux 37 entered end-of-life (EOL) status on 2023-12-05. Fedora Linux 37 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed.