0018204: SELinux is preventing /usr/bin/dbus-launch from ‘read’ accesses on the lnk_file /var/lib/dbus/machine-id.

0018204: SELinux is preventing /usr/bin/dbus-launch from ‘read’ accesses on the lnk_file /var/lib/dbus/machine-id.

Description of problem:<br />
SELinux is preventing /usr/bin/dbus-launch from ‘read’ accesses on the lnk_file /var/lib/dbus/machine-id.<br />
<br />
***** Plugin catchall (100. confidence) suggests **************************<br />
<br />
If you believe that dbus-launch should be allowed read access on the machine-id lnk_file by default.<br />
Then you should report this as a bug.<br />
You can generate a local policy module to allow this access.<br />
Do<br />
allow this access for now by executing:<br />
# ausearch -c ‘dbus-launch’ –raw | audit2allow -M my-dbuslaunch<br />
# semodule -i my-dbuslaunch.pp<br />
<br />
Additional Information:<br />
Source Context system_u:system_r:xdm_t:s0-s0:c0.c1023<br />
Target Context system_u:object_r:system_dbusd_var_lib_t:s0<br />
Target Objects /var/lib/dbus/machine-id [ lnk_file ]<br />
Source dbus-launch<br />
Source Path /usr/bin/dbus-launch<br />
Port <Unknown><br />
Host (removed)<br />
Source RPM Packages ibus-1.5.17-12.el7_9.x86_64<br />
Target RPM Packages <br />
Policy RPM selinux-policy-3.13.1-268.el7_9.2.noarch<br />
Selinux Enabled True<br />
Policy Type targeted<br />
Enforcing Mode Enforcing<br />
Host Name (removed)<br />
Platform Linux (removed) 3.10.0-1160.25.1.el7.x86_64 #1 SMP<br />
Wed Apr 28 21:49:45 UTC 2021 x86_64 x86_64<br />
Alert Count 20<br />
First Seen 2021-05-23 15:55:49 CEST<br />
Last Seen 2021-05-23 15:58:25 CEST<br />
Local ID 7141ca94-54c1-42e1-9224-02aa3ba4f949<br />
<br />
Raw Audit Messages<br />
type=AVC msg=audit(1621778305.209:169): avc: denied { read } for pid=2076 comm="ibus-x11" name="machine-id" dev="dm-0" ino=68864245 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<br />
<br />
<br />
type=SYSCALL msg=audit(1621778305.209:169): arch=x86_64 syscall=open success=no exit=EACCES a0=7fb44c298361 a1=0 a2=0 a3=7ffe64aa54e0 items=0 ppid=1 pid=2076 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=4294967295 comm=ibus-x11 exe=/usr/libexec/ibus-x11 subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)<br />
<br />
Hash: dbus-launch,xdm_t,system_dbusd_var_lib_t,lnk_file,read<br />
<br />
Version-Release number of selected component:<br />
selinux-policy-3.13.1-268.el7_9.2.noarch

* This article was originally published here

Leave a Reply

Your email address will not be published. Required fields are marked *