Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: This happened after upgrading F39 to F40 and logging in. SELinux is preventing daemon-init from 'map' accesses on the file /var/lib/flatpak/exports/share/mime/mime.cache. ***** Plugin catchall_boolean (57.6 confidence) suggests ****************** If you want to allow domain to can mmap files Then you must tell SELinux about this by enabling the 'domain_can_mmap_files' boolean. Do setsebool -P domain_can_mmap_files 1 ***** Plugin catchall_labels (36.2 confidence) suggests ******************* If you want to allow daemon-init to have map access on the mime.cache file Then you need to change the label on /var/lib/flatpak/exports/share/mime/mime.cache Do # semanage fcontext -a -t FILE_TYPE '/var/lib/flatpak/exports/share/mime/mime.cache' where FILE_TYPE is one of the following: abrt_helper_exec_t, bin_t, boot_t, etc_runtime_t, etc_t, fonts_cache_t, fonts_t, ld_so_cache_t, ld_so_t, lib_t, locale_t, nscd_var_run_t, pkcs11_modules_conf_t, prelink_exec_t, shell_exec_t, src_t, sssd_public_t, system_conf_t, system_db_t, systemd_notify_exec_t, textrel_shlib_t, usr_t, virtnodedevd_exec_t. Then execute: restorecon -v '/var/lib/flatpak/exports/share/mime/mime.cache' ***** Plugin catchall (7.64 confidence) suggests ************************** If you believe that daemon-init should be allowed map access on the mime.cache file 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 'daemon-init' --raw | audit2allow -M my-daemoninit # semodule -X 300 -i my-daemoninit.pp Additional Information: Source Context system_u:system_r:virtnodedevd_t:s0 Target Context system_u:object_r:var_lib_t:s0 Target Objects /var/lib/flatpak/exports/share/mime/mime.cache [ file ] Source daemon-init Source Path daemon-init Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-40.15-1.fc40.noarch Local Policy RPM selinux-policy-targeted-40.15-1.fc40.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 6.8.1-300.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 20 04:39:30 UTC 2024 x86_64 Alert Count 1 First Seen 2024-03-27 14:18:06 CET Last Seen 2024-03-27 14:18:06 CET Local ID 5b33d825-eba7-427a-a7fb-e5497d8aaa99 Raw Audit Messages type=AVC msg=audit(1711545486.955:237): avc: denied { map } for pid=3601 comm="daemon-init" path="/var/lib/flatpak/exports/share/mime/mime.cache" dev="dm-0" ino=23956383 scontext=system_u:system_r:virtnodedevd_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file permissive=0 Hash: daemon-init,virtnodedevd_t,var_lib_t,file,map Version-Release number of selected component: selinux-policy-targeted-40.15-1.fc40.noarch Additional info: reporter: libreport-2.17.15 reason: SELinux is preventing daemon-init from 'map' accesses on the file /var/lib/flatpak/exports/share/mime/mime.cache. package: selinux-policy-targeted-40.15-1.fc40.noarch component: selinux-policy hashmarkername: setroubleshoot type: libreport kernel: 6.8.1-300.fc40.x86_64 comment: This happened after upgrading F39 to F40 and logging in. component: selinux-policy
Created attachment 2023833 [details] File: description
Created attachment 2023834 [details] File: os_info
*** This bug has been marked as a duplicate of bug 2276779 ***