Bug 395981 - SELinux is preventing /sbin/ldconfig (ldconfig_t) "write" to /dev/null (var_lib_t). durring mock build
Summary: SELinux is preventing /sbin/ldconfig (ldconfig_t) "write" to /dev/null (var_l...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-22 18:01 UTC by Russell Harrison
Modified: 2013-01-10 01:43 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-11-26 19:48:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
setroubleshoot output (2.27 KB, text/plain)
2007-11-22 18:01 UTC, Russell Harrison
no flags Details

Description Russell Harrison 2007-11-22 18:01:36 UTC
setroublshoot reports an error preventing ldconfig from writing to /dev/null
durring a mock build

Ataching the setroubleshoot output.

Comment 1 Russell Harrison 2007-11-22 18:01:36 UTC
Created attachment 267171 [details]
setroubleshoot output

Comment 2 Michael E Brown 2007-11-22 18:38:53 UTC
doesnt prevent mock builds, simply produces annoying log messages.

Should be filed against selinux-policy.

Comment 3 Daniel Walsh 2007-11-26 15:00:16 UTC
This is caused by a mislabling of the mock build direcrtory  /dev/null should be
labeled null_device_t not dev_log_t.  I think the true solution to get mock to
run in a context that does not transion to confined domains, so these avc's dont
happen.

Comment 4 Michael E Brown 2007-11-26 19:48:22 UTC
dwalsh,

Thanks for the help. I have fixed this in mock by doing a "chcon
--reference=/dev/FILE  /mock/build/root/dev/FILE". 

This fixes this issue for all of the /dev/ entries in mock. There are still a
couple other denials that dont have file details:

SELinux is preventing /sbin/depmod (depmod_t) "search" to (var_lib_t).
SELinux is preventing useradd (useradd_t) "read write" to (var_log_t).
SELinux is preventing tzdata-update (tzdata_t) "search" to (var_lib_t).

I'm not sure how to fix these because it does not list the path it is trying to
access.

Can you explain more about "get mock to run in a context that does not transion
to confined domains"? I dont follow this.

This specific bug I am going to mark as FIXED - NEXTRELEASE. I dont intend to
make another release for a few weeks, at least. If you would like to check out
the fixed version, please look in the git repository for mock.



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