For the past few days, I’ve been experiencing issues with SELinux, first with Chrome, then with some mount points.
Log:
Jun 18 13:08:28 fedora bluetoothd[1081]: Failed to set mode: Failed (0x03)
Jun 18 13:09:25 fedora sddm-helper[1545]: gkr-pam: unable to locate daemon control file
Jun 18 13:09:28 fedora bluetoothd[1081]: Failed to set mode: Failed (0x03)
Jun 18 13:09:29 fedora bluetoothd[1081]: Failed to set mode: Failed (0x03)
Jun 18 13:09:32 fedora akonadiserver[2932]: org.kde.pim.akonadiserver: Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: ''
Jun 18 13:14:35 fedora setroubleshoot[4917]: SELinux prevents systemd-fstab-g from getattr access on folder /var/lib/machines. For complete SELinux messages, run: sealert -l 75610a57-7c76-4a0c-bd56-c3381a59a8db
Jun 18 13:14:35 fedora setroubleshoot[4917]: failed to retrieve rpm info for path '/media/emanu/game':
Jun 18 13:14:37 fedora setroubleshoot[4917]: SELinux prevents systemd-fstab-g from getattr access on folder /media/emanu/game. For complete SELinux messages, run: sealert -l fd54b33a-65cd-43b5-9ad4-208ede172560
jun 18 13:14:37 fedora setroubleshoot[4917]: failed to retrieve rpm info for path '/media/emanu/dati':
Jun 18 13:14:39 fedora setroubleshoot[4917]: SELinux prevents systemd-fstab-g from getattr access on folder /media/emanu/dati. For complete SELinux messages, run: sealert -l fd54b33a-65cd-43b5-9ad4-208ede172560
Jun 18 13:14:39 fedora setroubleshoot[4917]: failed to retrieve rpm info for path '/media/emanu/ssd':
Jun 18 13:14:41 fedora setroubleshoot[4917]: SELinux prevents systemd-fstab-g from getattr access on folder /media/emanu/ssd. For complete SELinux messages, run: sealert -l fd54b33a-65cd-43b5-9ad4-208ede172560
Jun 18 16:01:32 fedora dbus-broker-launch[1077]: Activation request for 'org.bluez' failed.
Jun 18 16:01:32 fedora dbus-broker-launch[1077]: Activation request for 'org.bluez' failed.
Jun 18 16:01:33 fedora dbus-broker-launch[1077]: Activation request for 'org.freedesktop.nm_dispatcher' failed.
And the issues with Chrome and the Fedora user agent:
log:
Jun 18 20:04:52 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l 1c241c55-3660-4677-90d6-fc53389241ce
Jun 18 20:04:52 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l 1c241c55-3660-4677-90d6-fc53389241ce
Jun 18 20:04:52 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l 1c241c55-3660-4677-90d6-fc53389241ce
Jun 18 20:04:52 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l 1c241c55-3660-4677-90d6-fc53389241ce
Jun 18 20:04:52 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l 1c241c55-3660-4677-90d6-fc53389241ce
Jun 18 20:04:53 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l 1c241c55-3660-4677-90d6-fc53389241ce
Jun 18 20:04:53 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l 1c241c55-3660-4677-90d6-fc53389241ce
Jun 18 20:04:53 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l 1c241c55-3660-4677-90d6-fc53389241ce
Jun 18 20:04:53 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l 1c241c55-3660-4677-90d6-fc53389241ce
Jun 18 20:04:53 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l 1c241c55-3660-4677-90d6-fc53389241ce
Jun 18 20:04:54 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l 1c241c55-3660-4677-90d6-fc53389241ce
Jun 18 20:05:17 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l caa39702-a58e-4987-862b-13d1cbf7b69b
Jun 18 20:05:18 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l caa39702-a58e-4987-862b-13d1cbf7b69b
Jun 18 20:05:18 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l caa39702-a58e-4987-862b-13d1cbf7b69b
Jun 18 20:05:18 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process. For complete SELinux messages, run: sealert -l caa39702-a58e-4987-862b-13d1cbf7b69b
Jun 18 20:05:18 fedora sealert[4882]: gtk_grid_attach: assertion '_gtk_widget_get_parent (child) == NULL' failed
Jun 18 20:05:18 fedora sealert[4882]: gtk_grid_attach: assertion '_gtk_widget_get_parent (child) == NULL' failed
Jun 18 20:05:18 fedora setroubleshoot[4751]: SELinux prevents chrome from execheap access on a process.
⏎
⏎
***** Plugin allow_execheap (53.1 confidence) suggests ********************
vbnet
If you do not think chrome should need to map the heap memory that is both writable and executable.
Then you need to report a bug. This is potentially dangerous access.
Contact your security administrator and report the issue.
⏎
⏎
***** Plugin catchall_boolean (42.6 confidence) suggests ******************
If you want to allow selinuxuser to execheap
Then you need to inform SELinux by enabling the boolean 'selinuxuser_execheap'.
Run
setsebool -P selinuxuser_execheap 1
⏎
⏎
***** Plugin catchall (5.76 confidence) suggests **************************
If you believe chrome should be allowed execheap access to processes labeled unconfined_t by default.
Then you should report the issue as a bug.
You can generate a local policy module to allow this access.
Run
allow this access for now by executing:
# ausearch -c 'chrome' --raw | audit2allow -M my-$MODULE_NAME
# semodule -X 300 -i my-chrome.pp
Chrome is installed via Flatpak by Flathub. Previously I have never seen these Selinux messages.
emanu@fedora ~> flatpak info com.google.Chrome
Google Chrome - The web browser from Google
ID: com.google.Chrome
Ref: app/com.google.Chrome/x86_64/stable
Arch: x86_64
Branch: stable
Version: 126.0.6478.61-1
License: LicenseRef-proprietary
Origin: flathub
Collection: org.flathub.Stable
Installation: system
Installed: 21,3 MB
Runtime: org.freedesktop.Platform/x86_64/22.08
Sdk: org.freedesktop.Sdk/x86_64/22.08
Commit: 91aba6e2717d568dcc38d512cc3da31d31b1657aada6745dc9febed388923ccd
Parent: 98df98d61d33b1ef51bfb283e76a9fbf0adee42ec2e45c6c771161edb7289cb3
Subject: chrome: Update chrome.deb to 126.0.6478.61-1 (7b957488)
Date: 2024-06-15 03:34:57 +0000
Already done, and nothing has changed: touch /.autorelabel; reboot
Edit: The partitions are mounted without issues, but I see those messages, is that normal?
As for Chrome, I had to reset the user configuration in “/home/user/.var/…”
Chrome seems to work fine after the reset.