Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Since the update to 78: Playing videos on websites in firefox triggers SElinux deny AVC.
Version-Release number of selected component (if applicable):
$ rpm -q firefox
firefox-78.2.0-2.el8_2.x86_64
Actual results:
# journalctl -f
Aug 29 00:30:54 stand.localdomain xdg-desktop-por[9312]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: App introspection not allowed
Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Supervising 5 threads of 3 processes of 1 users.
Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Supervising 5 threads of 3 processes of 1 users.
Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Supervising 5 threads of 3 processes of 1 users.
Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Supervising 5 threads of 3 processes of 1 users.
Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Successfully made thread 16396 of process 14519 (n/a) owned by '1200' RT at priority 10.
Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Supervising 6 threads of 4 processes of 1 users.
Aug 29 00:30:59 stand.localdomain dbus-daemon[2025]: [system] Activating service name='org.fedoraproject.Setroubleshootd' requested by ':1.1202' (uid=0 pid=1993 comm="/usr/sbin/sedispatch " label="system_u:system_r:auditd_t:s0") (using servicehelper)
Aug 29 00:30:59 stand.localdomain dbus-daemon[16410]: [system] Failed to reset fd limit before activating service: org.freedesktop.DBus.Error.AccessDenied: Failed to restore old fd limit: Operation not permitted
Aug 29 00:31:00 stand.localdomain dbus-daemon[2025]: [system] Successfully activated service 'org.fedoraproject.Setroubleshootd'
Aug 29 00:31:01 stand.localdomain setroubleshoot[16410]: SELinux is preventing /usr/libexec/rtkit-daemon from sys_ptrace access on the cap_userns labeled rtkit_daemon_t. For complete SELinux messages run: sealert -l da049452-7ae1-4211-a105-d320cb78ee45
Aug 29 00:31:01 stand.localdomain platform-python[16410]: SELinux is preventing /usr/libexec/rtkit-daemon from sys_ptrace access on the cap_userns labeled rtkit_daemon_t.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that rtkit-daemon should be allowed sys_ptrace access on cap_userns labeled rtkit_daemon_t 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 'rtkit-daemon' --raw | audit2allow -M my-rtkitdaemon
# semodule -X 300 -i my-rtkitdaemon.pp
Aug 29 00:31:09 stand.localdomain org.gnome.Shell.desktop[7139]: libinput error: client bug: timer event8 debounce short: offset negative (-0ms)
Aug 29 00:31:45 stand.localdomain org.gnome.Shell.desktop[7139]: libinput error: client bug: timer event8 debounce short: offset negative (-10ms)
# ausearch -m avc |tail
----
time->Sat Aug 29 00:30:56 2020
type=PROCTITLE msg=audit(1598653856.832:453): proctitle="/usr/libexec/rtkit-daemon"
type=SYSCALL msg=audit(1598653856.832:453): arch=c000003e syscall=89 success=no exit=-13 a0=7ffe30821fb0 a1=7ffe30822120 a2=7f a3=0 items=0 ppid=1 pid=2052 auid=4294967295 uid=172 gid=172 euid=172 suid=172 fsuid=172 egid=172 sgid=172 fsgid=172 tty=(none) ses=4294967295 comm="rtkit-daemon" exe="/usr/libexec/rtkit-daemon" subj=system_u:system_r:rtkit_daemon_t:s0 key=(null)
type=AVC msg=audit(1598653856.832:453): avc: denied { sys_ptrace } for pid=2052 comm="rtkit-daemon" capability=19 scontext=system_u:system_r:rtkit_daemon_t:s0 tcontext=system_u:system_r:rtkit_daemon_t:s0 tclass=cap_userns permissive=0
Can confirm, since update to firefox-78.2.0-2.el8_2.x86_64 all of our users get this SELinux denial when using video conference - which we do a lot right now!
As this is basically a clone of Fedora bz#1723308, switching component to selinux-policy. If you feel this needs rtkit developers attention, feel free to switch it back.
Note there was also bz#1750024 for sys_nice capability which is not in RHEL 8 either atm.
Leon,
I cannot assess if it is related.
You can create a custom selinux policy module to allow the permission and check further.
# cat local_firefox_rtkit.cil
(allow rtkit_daemon_t self (cap_userns (sys_ptrace)))
# semodule -i local_firefox_rtkit.cil
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2021:1639
Description of problem: Since the update to 78: Playing videos on websites in firefox triggers SElinux deny AVC. Version-Release number of selected component (if applicable): $ rpm -q firefox firefox-78.2.0-2.el8_2.x86_64 Actual results: # journalctl -f Aug 29 00:30:54 stand.localdomain xdg-desktop-por[9312]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: App introspection not allowed Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Supervising 5 threads of 3 processes of 1 users. Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Supervising 5 threads of 3 processes of 1 users. Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Supervising 5 threads of 3 processes of 1 users. Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Supervising 5 threads of 3 processes of 1 users. Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Successfully made thread 16396 of process 14519 (n/a) owned by '1200' RT at priority 10. Aug 29 00:30:56 stand.localdomain rtkit-daemon[2052]: Supervising 6 threads of 4 processes of 1 users. Aug 29 00:30:59 stand.localdomain dbus-daemon[2025]: [system] Activating service name='org.fedoraproject.Setroubleshootd' requested by ':1.1202' (uid=0 pid=1993 comm="/usr/sbin/sedispatch " label="system_u:system_r:auditd_t:s0") (using servicehelper) Aug 29 00:30:59 stand.localdomain dbus-daemon[16410]: [system] Failed to reset fd limit before activating service: org.freedesktop.DBus.Error.AccessDenied: Failed to restore old fd limit: Operation not permitted Aug 29 00:31:00 stand.localdomain dbus-daemon[2025]: [system] Successfully activated service 'org.fedoraproject.Setroubleshootd' Aug 29 00:31:01 stand.localdomain setroubleshoot[16410]: SELinux is preventing /usr/libexec/rtkit-daemon from sys_ptrace access on the cap_userns labeled rtkit_daemon_t. For complete SELinux messages run: sealert -l da049452-7ae1-4211-a105-d320cb78ee45 Aug 29 00:31:01 stand.localdomain platform-python[16410]: SELinux is preventing /usr/libexec/rtkit-daemon from sys_ptrace access on the cap_userns labeled rtkit_daemon_t. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that rtkit-daemon should be allowed sys_ptrace access on cap_userns labeled rtkit_daemon_t 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 'rtkit-daemon' --raw | audit2allow -M my-rtkitdaemon # semodule -X 300 -i my-rtkitdaemon.pp Aug 29 00:31:09 stand.localdomain org.gnome.Shell.desktop[7139]: libinput error: client bug: timer event8 debounce short: offset negative (-0ms) Aug 29 00:31:45 stand.localdomain org.gnome.Shell.desktop[7139]: libinput error: client bug: timer event8 debounce short: offset negative (-10ms) # ausearch -m avc |tail ---- time->Sat Aug 29 00:30:56 2020 type=PROCTITLE msg=audit(1598653856.832:453): proctitle="/usr/libexec/rtkit-daemon" type=SYSCALL msg=audit(1598653856.832:453): arch=c000003e syscall=89 success=no exit=-13 a0=7ffe30821fb0 a1=7ffe30822120 a2=7f a3=0 items=0 ppid=1 pid=2052 auid=4294967295 uid=172 gid=172 euid=172 suid=172 fsuid=172 egid=172 sgid=172 fsgid=172 tty=(none) ses=4294967295 comm="rtkit-daemon" exe="/usr/libexec/rtkit-daemon" subj=system_u:system_r:rtkit_daemon_t:s0 key=(null) type=AVC msg=audit(1598653856.832:453): avc: denied { sys_ptrace } for pid=2052 comm="rtkit-daemon" capability=19 scontext=system_u:system_r:rtkit_daemon_t:s0 tcontext=system_u:system_r:rtkit_daemon_t:s0 tclass=cap_userns permissive=0