Bug 1809993 - SELinux error when Firefox is launched
Summary: SELinux error when Firefox is launched
Keywords:
Status: CLOSED DUPLICATE of bug 1800927
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-04 11:02 UTC by Martin Stransky
Modified: 2020-03-17 14:46 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-17 14:46:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Martin Stransky 2020-03-04 11:02:20 UTC
Description of problem:

SELinux is preventing /usr/lib/systemd/systemd-journald from read access on the lnk_file invocation:gnome-launched-firefox.desktop-13670.scope.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
invocation:gnome-launched-firefox.desktop-13670.scope default label should be session_dbusd_tmp_t.
Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly.
Do
# /sbin/restorecon -v invocation:gnome-launched-firefox.desktop-13670.scope

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that systemd-journald should be allowed read access on the invocation:gnome-launched-firefox.desktop-13670.scope lnk_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 'systemd-journal' --raw | audit2allow -M my-systemdjournal
# semodule -X 300 -i my-systemdjournal.pp

Additional Information:
Source Context                system_u:system_r:syslogd_t:s0
Target Context                unconfined_u:object_r:user_tmp_t:s0
Target Objects                invocation:gnome-launched-
                              firefox.desktop-13670.scope [ lnk_file ]
Source                        systemd-journal
Source Path                   /usr/lib/systemd/systemd-journald
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           systemd-245~rc1-4.fc32.x86_64
Target RPM Packages           
SELinux Policy RPM            selinux-policy-3.14.5-28.fc32.noarch
Local Policy RPM              selinux-policy-targeted-3.14.5-28.fc32.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain
                              5.6.0-0.rc3.git0.1.fc32.x86_64 #1 SMP Mon Feb 24
                              21:29:40 UTC 2020 x86_64 x86_64
Alert Count                   34
First Seen                    2020-03-04 11:10:06 CET
Last Seen                     2020-03-04 11:59:53 CET
Local ID                      37fb10e2-7226-43be-b6d3-ff2ab63b55ff

Raw Audit Messages
type=AVC msg=audit(1583319593.527:496): avc:  denied  { read } for  pid=587 comm="systemd-journal" name="invocation:gnome-launched-firefox.desktop-13670.scope" dev="tmpfs" ino=180189 scontext=system_u:system_r:syslogd_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=lnk_file permissive=1


type=SYSCALL msg=audit(1583319593.527:496): arch=x86_64 syscall=readlinkat success=yes exit=EPIPE a0=ffffff9c a1=55e72da51580 a2=55e72dae0f30 a3=1000 items=1 ppid=1 pid=587 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-journal exe=/usr/lib/systemd/systemd-journald subj=system_u:system_r:syslogd_t:s0 key=(null)

Hash: systemd-journal,syslogd_t,user_tmp_t,lnk_file,read

Comment 1 Zdenek Pytela 2020-03-17 14:46:26 UTC

*** This bug has been marked as a duplicate of bug 1800927 ***


Note You need to log in before you can comment on or make changes to this bug.