Debian Bug report logs - #1095117
selinux-policy-default: dbus fails to start after installing SELinux

version graph

Package: selinux-policy-default; Maintainer for selinux-policy-default is Debian SELinux maintainers <[email protected]>; Source for selinux-policy-default is src:refpolicy (PTS, buildd, popcon).

Reported by: Cliff Kilby <[email protected]>

Date: Mon, 3 Feb 2025 21:57:02 UTC

Severity: minor

Found in version refpolicy/2:2.20221101-9

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], [email protected], Debian SELinux maintainers <[email protected]>:
Bug#1095117; Package selinux-policy-default. (Mon, 03 Feb 2025 21:57:02 GMT) (full text, mbox, link).


Acknowledgement sent to Cliff Kilby <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], Debian SELinux maintainers <[email protected]>. (Mon, 03 Feb 2025 21:57:02 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Cliff Kilby <[email protected]>
To: [email protected]
Subject: selinux-policy-default: dbus fails to start after installing SELinux
Date: Mon, 3 Feb 2025 21:52:46 +0000
[Message part 1 (text/plain, inline)]
Package: selinux-policy-default
X-Debbugs-Cc: [email protected]
Version: 2:2.20221101-9
Severity: minor
Tags:

Dear Maintainer,

dbus fails to start after installing SELinux. The error indicates that it
expects a file in /etc/selinux/targeted/contexts/dbus_contexts
The package selinux-policy-default does not include the targeted/ subpath.

OBSERVED RESULT
There is no file in /etc/selinux/targeted/contexts/dbus_contexts
EXPECTED RESULT
https://sources.debian.org/src/linux/3.16.36-1%2Bdeb8u2~bpo70%2B1/scripts/selinux/mdp/dbus_contexts/
Should exist in /etc/selinux/targeted/contexts/dbus_contexts
after installing either selinux-policy-default or one of the other selinux
packages, if you don't believe it belongs in selinux-policy-default

SOFTWARE/OS VERSIONS
Linux: Debian 6.1.124-1

checkpolicy/stable,now 3.4-1+b2 amd64 [installed,automatic]
libselinux1/stable,now 3.4-1+b6 amd64 [installed]
libselinux1-dev/stable,now 3.4-1+b6 amd64 [installed,automatic]
libsemanage-common/stable,stable,now 3.4-1 all [installed]
libsemanage2/stable,now 3.4-1+b5 amd64 [installed]
libsepol-dev/stable,now 3.4-2.1 amd64 [installed,automatic]
libsepol2/stable,now 3.4-2.1 amd64 [installed]
policycoreutils/stable,now 3.4-1 amd64 [installed,automatic]
policycoreutils-dbus/stable,stable,now 3.4-1 all [installed]
policycoreutils-dev/stable,now 3.4-1+b2 amd64 [installed,automatic]
policycoreutils-python-utils/stable,stable,now 3.4-1 all
[installed,automatic]
python3-selinux/stable,now 3.4-1+b6 amd64 [installed,automatic]
python3-semanage/stable,now 3.4-1+b5 amd64 [installed,automatic]
python3-sepolgen/stable,stable,now 3.4-1 all [installed,automatic]
python3-sepolicy/stable,stable,now 3.4-1 all [installed,automatic]
python3-setools/stable,now 4.4.1-2 amd64 [installed,automatic]
selinux-basics/stable,stable,now 0.5.8 all [installed]
selinux-policy-default/stable,stable,now 2:2.20221101-9 all [installed]
selinux-policy-dev/stable,stable,now 2:2.20221101-9 all
[installed,automatic]
selinux-utils/stable,now 3.4-1+b6 amd64 [installed]
semanage-utils/stable,stable,now 3.4-1 all [installed]
semodule-utils/stable,now 3.4-1 amd64 [installed]
setools/stable,now 4.4.1-2 amd64 [installed,automatic]

ADDITIONAL INFORMATION
Workaround available.
Creating a file at /etc/selinux/targeted/contexts/dbus_contexts
with the minimum content of:

<busconfig>
  <selinux>
  </selinux>
</busconfig>

Allows dbus to start. Setting SELinux into permissive or enforcing=0 does
not workaround the problem.

dbus will look for the file if SELinux is loaded.
[Message part 2 (text/html, inline)]

Information forwarded to [email protected], Debian SELinux maintainers <[email protected]>:
Bug#1095117; Package selinux-policy-default. (Tue, 04 Feb 2025 01:51:01 GMT) (full text, mbox, link).


Acknowledgement sent to [email protected]:
Extra info received and forwarded to list. Copy sent to Debian SELinux maintainers <[email protected]>. (Tue, 04 Feb 2025 01:51:01 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Russell Coker <[email protected]>
To: [email protected]
Subject: did you use Red Hat documentation?
Date: Tue, 04 Feb 2025 12:48:40 +1100
What do you have in /etc/selinux/config ?

The system should be looking for /etc/selinux/default/contexts/dbus_contexts 
which is provided by selinux-policy-default unless you have the wrong data in 
/etc/selinux/config .

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/






Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 13:23:16 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.