Bug 351211 - denials from chkconfig
Summary: denials from chkconfig
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dhcp
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F8Blocker
TreeView+ depends on / blocked
 
Reported: 2007-10-24 19:57 UTC by Jesse Keating
Modified: 2013-01-10 02:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-10-25 16:46:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch for this (2.88 KB, patch)
2007-10-25 15:26 UTC, Bill Nottingham
no flags Details | Diff

Description Jesse Keating 2007-10-24 19:57:06 UTC
SELinux is preventing chkconfig (dhcpc_t) "search" to (user_home_dir_t).

Source Context:  system_u:system_r:dhcpc_t:s0
Target Context:  system_u:object_r:user_home_dir_t:s0
Target Objects:  None [ dir ]

avc: denied { search } for comm=chkconfig dev=dm-3 name=root pid=16995
scontext=system_u:system_r:dhcpc_t:s0 tclass=dir
tcontext=system_u:object_r:user_home_dir_t:s0

Comment 1 Jeremy Katz 2007-10-24 20:56:15 UTC
When do you get this?

Comment 2 Jesse Keating 2007-10-24 21:15:38 UTC
This happens if you run 'ifup' in /root/  (not sure about other locations,
didn't try them)

Comment 3 Bill Nottingham 2007-10-24 21:27:56 UTC
dhclient-script uses chkconfig to attempt to do some deranged service restarting
w.r.t. ypbind. I'm debating whether it should be taken out and shot repeatedly.

Comment 4 Bill Nottingham 2007-10-24 21:30:53 UTC
(i.e., don't change policy just yet)

Comment 5 Jeremy Katz 2007-10-25 03:50:20 UTC
Oh, ick.  One vote for taking it out...

Comment 6 Jesse Keating 2007-10-25 13:03:34 UTC
I do too.

Comment 7 Bill Nottingham 2007-10-25 15:26:22 UTC
Created attachment 237481 [details]
patch for this

Here's a patch that:

- doesn't actually use chkconfig to check the runlevel, as it's superfluous
(you can just check if ypbind is running)
- uses coreutils readlink rather than busybox (!)

Comment 8 David Cantrell 2007-10-25 16:46:19 UTC
Bill, thanks for the patch.  Really hate that script.  But it's slowly becoming
sane.  Or maybe I'm becoming insane.  I just recently gutted all of the dhcdbd
hacks in that script, so bring on more minus signs.


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