Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1928365

Summary: D-Bus System Message Bus fails to start due to SELinux policy
Product: [Fedora] Fedora Reporter: Matti Linnanvuori <mattilinnanvuori>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, plautrba, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matti Linnanvuori 2021-02-13 12:36:41 UTC
Description of problem:
D-Bus System Message Bus fails to start due to SELinux policy

Version-Release number of selected component (if applicable):
3.14.7-18.fc34

How reproducible:
always

Steps to Reproduce:
1. Install snapd.
2. Upgrade to the latest Rawhide Workstation.
3. Boot the computer

Actual results:
D-Bus System Message Bus fails to start.

Expected results:
D-Bus System Message Bus starts.

Additional info:
Feb 11 21:24:23 localhost.localdomain systemd[1]: Starting D-Bus System Message Bus...
░░ Subject: A start job for unit dbus-broker.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit dbus-broker.service has begun execution.
░░ 
░░ The job identifier is 7552.
Feb 11 21:24:23 localhost.localdomain audit: BPF prog-id=104 op=UNLOAD
Feb 11 21:24:23 localhost.localdomain audit[1463]: AVC avc:  denied  { watch } for  pid=1463 comm="dbus-broker-lau" path="/var/lib/snapd/dbus-1/system-services" dev="dm-0" ino=351756 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c10>
Feb 11 21:24:23 localhost.localdomain dbus-broker-launch[1463]: ERROR dirwatch_add @ ../src/util/dirwatch.c +122: Permission denied
Feb 11 21:24:23 localhost.localdomain dbus-broker-launch[1463]:       launcher_load_service_dir @ ../src/launch/launcher.c +763
Feb 11 21:24:23 localhost.localdomain dbus-broker-launch[1463]:       launcher_load_services @ ../src/launch/launcher.c +978
Feb 11 21:24:23 localhost.localdomain dbus-broker-launch[1463]:       launcher_run @ ../src/launch/launcher.c +1306
Feb 11 21:24:23 localhost.localdomain dbus-broker-launch[1463]:       run @ ../src/launch/main.c +152
Feb 11 21:24:23 localhost.localdomain dbus-broker-launch[1463]:       main @ ../src/launch/main.c +178
Feb 11 21:24:23 localhost.localdomain dbus-broker-launch[1463]: Exiting due to fatal error: -13
Feb 11 21:24:23 localhost.localdomain systemd[1]: dbus-broker.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit dbus-broker.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Feb 11 21:24:23 localhost.localdomain systemd[1]: dbus-broker.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit dbus-broker.service has entered the 'failed' state with result 'exit-code'.
Feb 11 21:24:23 localhost.localdomain systemd[1]: Failed to start D-Bus System Message Bus.
░░ Subject: A start job for unit dbus-broker.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit dbus-broker.service has finished with a failure.
░░ 
░░ The job identifier is 7552 and the job result is failed.
Feb 11 21:24:23 localhost.localdomain audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-broker comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? re>
Feb 11 21:24:23 localhost.localdomain systemd[1]: dbus-broker.service: Start request repeated too quickly.
Feb 11 21:24:23 localhost.localdomain systemd[1]: dbus-broker.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit dbus-broker.service has entered the 'failed' state with result 'exit-code'.
Feb 11 21:24:23 localhost.localdomain systemd[1]: Failed to start D-Bus System Message Bus.
░░ Subject: A start job for unit dbus-broker.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit dbus-broker.service has finished with a failure.
░░ 
░░ The job identifier is 7655 and the job result is failed.