Bug 705571 - dbus errors in mock with selinux enforcing and permissive
Summary: dbus errors in mock with selinux enforcing and permissive
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: dbus
Version: 5.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Richard Hughes
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-17 20:44 UTC by Jenny Severance
Modified: 2014-06-25 20:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-25 20:48:26 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jenny Severance 2011-05-17 20:44:04 UTC
Description of problem:

# getenforce
Enforcing

# mock -r jenny shell
INFO: mock.py version 1.0.7 starting...
State Changed: init plugins
State Changed: start
State Changed: lock buildroot
mock-chroot> dbus-launch pwd
Failed to start message bus: Failed to open "/etc/security/contexts/dbus_contexts": No such file or directory
EOF in dbus-launch reading address from bus daemon
mock-chroot> 

you must disable selinux

# getenforce
Disabled

# mock -r jenny shell
INFO: mock.py version 1.0.7 starting...
State Changed: init plugins
State Changed: start
State Changed: lock buildroot
mock-chroot> dbus-launch pwd
/
mock-chroot> 



Version-Release number of selected component (if applicable):
# rpm -qa | grep dbus
dbus-1.1.2-15.el5_6
dbus-libs-1.1.2-15.el5_6
dbus-glib-devel-0.73-10.el5_5
dbus-glib-0.73-10.el5_5
dbus-devel-1.1.2-15.el5_6
dbus-libs-1.1.2-15.el5_6
dbus-glib-0.73-10.el5_5
dbus-devel-1.1.2-15.el5_6
dbus-python-0.70-9.el5_4
dbus-x11-1.1.2-15.el5_6


How reproducible:


Steps to Reproduce:
1. see description
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Nalin Dahyabhai 2011-05-17 20:50:04 UTC
It looks like in enforcing mode, dbus-launch expects the SELinux policy to provide /etc/security/contexts/dbus_contexts, but for whatever reason mock isn't installing policy into the chroot.

Comment 2 RHEL Program Management 2014-03-07 13:40:23 UTC
This bug/component is not included in scope for RHEL-5.11.0 which is the last RHEL5 minor release. This Bugzilla will soon be CLOSED as WONTFIX (at the end of RHEL5.11 development phase (Apr 22, 2014)). Please contact your account manager or support representative in case you need to escalate this bug.

Comment 3 Jenny Severance 2014-03-07 16:19:41 UTC
I am okay with this.

Comment 4 Ondrej Vasik 2014-06-25 20:48:26 UTC
Thanks for reply, closing WONTFIX for RHEL 5.


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