Bug 1467701

Summary: SELinux is preventing ibus-daemon from 'read' accesses on the lnk_file /var/lib/dbus/machine-id.
Product: [Fedora] Fedora Reporter: Dario Castellarin <req1348>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: alick9188, amaurygodoy30, angeldavidt2, bgz, brentrbrian, bugzilla, bugzilla, bugzilla.redhat, daniele.marsella95, david, dominick.grift, dragomir.dan, dwalsh, fmuro, lvrabec, marek90, mgrepl, plautrba, pmoore, rehol3, ssekidde, steve, tcstone, thelints, venturato.gabriele
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:428a9a08b5adff49151e60cd3df801a413869fe0486d5347e34b7ee184f6ba6d;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-12 12:35:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dario Castellarin 2017-07-04 16:35:05 UTC
Description of problem:
SELinux is preventing ibus-daemon from 'read' accesses on the lnk_file /var/lib/dbus/machine-id.

*****  Plugin catchall (100. confidence) suggests   **************************

If si crede che ibus-daemon dovrebbe avere possibilità di accesso read sui machine-id lnk_file in modo predefinito.
Then si dovrebbe riportare il problema come bug.
E' possibile generare un modulo di politica locale per consentire questo accesso.
Do
allow this access for now by executing:
# ausearch -c 'ibus-daemon' --raw | audit2allow -M my-ibusdaemon
# semodule -X 300 -i my-ibusdaemon.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:system_dbusd_var_lib_t:s0
Target Objects                /var/lib/dbus/machine-id [ lnk_file ]
Source                        ibus-daemon
Source Path                   ibus-daemon
Port                          <Sconosciuto>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-225.19.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.8-200.fc25.x86_64 #1 SMP Thu
                              Jun 29 16:13:56 UTC 2017 x86_64 x86_64
Alert Count                   49
First Seen                    2017-07-01 23:55:02 CEST
Last Seen                     2017-07-04 18:33:50 CEST
Local ID                      824b582c-d31b-49e7-b26e-35855649c8db

Raw Audit Messages
type=AVC msg=audit(1499186030.240:246): avc:  denied  { read } for  pid=1447 comm="gnome-settings-" name="machine-id" dev="dm-0" ino=1048654 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:system_dbusd_var_lib_t:s0 tclass=lnk_file permissive=0


Hash: ibus-daemon,xdm_t,system_dbusd_var_lib_t,lnk_file,read

Version-Release number of selected component:
selinux-policy-3.13.1-225.19.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.11.8-200.fc25.x86_64
type:           libreport

Potential duplicate: bug 1467407

Comment 1 Fernando 2017-07-05 14:19:30 UTC
Description of problem:
It happens when starting up the computer.

Version-Release number of selected component:
selinux-policy-3.13.1-225.18.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.11.8-200.fc25.x86_64
type:           libreport

Comment 2 bugzilla 2017-07-06 20:02:29 UTC
*** Bug 1468361 has been marked as a duplicate of this bug. ***

Comment 3 Dan Dragomir 2017-07-07 08:00:30 UTC
Description of problem:
Happened after I installed updates.

Version-Release number of selected component:
selinux-policy-3.13.1-225.18.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.11.8-200.fc25.x86_64
type:           libreport

Comment 4 nasi 2017-07-07 08:32:09 UTC
Description of problem:
unplugged power

Version-Release number of selected component:
selinux-policy-3.13.1-225.18.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.11.8-200.fc25.x86_64
type:           libreport

Comment 5 Alick Zhao 2017-07-07 21:44:39 UTC
Description of problem:
popup on a newly booted system

Version-Release number of selected component:
selinux-policy-3.13.1-225.18.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.11.8-200.fc25.x86_64
type:           libreport

Comment 6 Chris Murphy 2017-07-08 19:17:02 UTC
I'm hitting this on Fedora 26 as well, non-deterministically, when plugging power into the laptop.


Raw Audit Messages
type=AVC msg=audit(1499540810.119:486): avc:  denied  { read } for  pid=1513 comm="gsd-power" name="machine-id" dev="nvme0n1p8" ino=655645 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:system_dbusd_var_lib_t:s0 tclass=lnk_file permissive=0


kernel-4.11.8-300.fc26.x86_64
selinux-policy-3.13.1-259.fc26.noarch

Comment 7 Daniel Walsh 2017-07-12 12:35:20 UTC

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