Bug 522891

Summary: setroubleshoot: SELinux is preventing 10-dhclient (devicekit_power_t) "read" dhcp_etc_t.
Product: [Fedora] Fedora Reporter: Brian Harrington <bharrington>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, jkubin, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:d0f26865fdfa8790c7c2296df97d6d7d8713f9cd6e3a7772f4a6d407e6776206
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-12 03:08:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brian Harrington 2009-09-12 01:05:19 UTC
The following was filed automatically by setroubleshoot:

Summary:

SELinux is preventing 10-dhclient (devicekit_power_t) "read" dhcp_etc_t.

Detailed Description:

SELinux denied access requested by 10-dhclient. It is not expected that this
access is required by 10-dhclient and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Additional Information:

Source Context                system_u:system_r:devicekit_power_t:s0-s0:c0.c1023
Target Context                system_u:object_r:dhcp_etc_t:s0
Target Objects                /etc/dhcp/dhclient.d [ dir ]
Source                        10-dhclient
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.0.28-1.fc12
Target RPM Packages           ntp-4.2.4p7-4.fc12
Policy RPM                    selinux-policy-3.6.26-8.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31-0.125.4.2.rc5.git2.fc12.i686 #1 SMP Tue Aug
                              11 21:20:05 EDT 2009 i686 i686
Alert Count                   4
First Seen                    Sun 06 Sep 2009 10:40:31 AM EDT
Last Seen                     Sun 06 Sep 2009 10:57:16 AM EDT
Local ID                      1f9c0ac5-aa77-4012-9c9f-fb81f4664f8d
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1252249036.761:26807): avc:  denied  { read } for  pid=3655 comm="10-dhclient" name="dhclient.d" dev=dm-4 ino=18094 scontext=system_u:system_r:devicekit_power_t:s0-s0:c0.c1023 tcontext=system_u:object_r:dhcp_etc_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1252249036.761:26807): avc:  denied  { open } for  pid=3655 comm="10-dhclient" name="dhclient.d" dev=dm-4 ino=18094 scontext=system_u:system_r:devicekit_power_t:s0-s0:c0.c1023 tcontext=system_u:object_r:dhcp_etc_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1252249036.761:26807): arch=40000003 syscall=5 success=yes exit=3 a0=9987938 a1=98800 a2=0 a3=99879b0 items=0 ppid=3410 pid=3655 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="10-dhclient" exe="/bin/bash" subj=system_u:system_r:devicekit_power_t:s0-s0:c0.c1023 key=(null)


audit2allow suggests:

#============= devicekit_power_t ==============
allow devicekit_power_t dhcp_etc_t:dir { read open };

Comment 1 Daniel Walsh 2009-09-12 03:08:47 UTC
Please update to the latest selinux policy, this has been fixed for a while.