Bug 544162

Summary: SELinux is preventing consoletype (consoletype_t) "read" to /var/lib/dhclient/dhclient-wlan0.leases (dhcpc_state_t).
Product: [Fedora] Fedora Reporter: Jason <ja3021>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, ja3021, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:74e0cebee7f35714a9556c86025618bac3785538d8e33cddf9d18756fff77baa
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-04 11:24:09 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 Jason 2009-12-04 03:32:31 UTC
Summary:

SELinux is preventing consoletype (consoletype_t) "read" to
/var/lib/dhclient/dhclient-wlan0.leases (dhcpc_state_t).

Detailed Description:

[consoletype has a permissive type (consoletype_t). This access was not denied.]

SELinux denied access requested by consoletype. It is not expected that this
access is required by consoletype 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:

Sometimes labeling problems can cause SELinux denials. You could try to restore
the default system file context for /var/lib/dhclient/dhclient-wlan0.leases,

restorecon -v '/var/lib/dhclient/dhclient-wlan0.leases'

If this does not work, there is currently no automatic way to allow this access.
Instead, you can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                unconfined_u:system_r:consoletype_t:s0
Target Context                unconfined_u:object_r:dhcpc_state_t:s0
Target Objects                /var/lib/dhclient/dhclient-wlan0.leases [ file ]
Source                        consoletype
Source Path                   /sbin/consoletype
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           initscripts-8.86-1
Target RPM Packages           
Policy RPM                    selinux-policy-3.5.13-18.fc10
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall_file
Host Name                     (removed)
Platform                      Linux (removed) 2.6.27.5-117.fc10.i686
                              #1 SMP Tue Nov 18 12:19:59 EST 2008 i686 i686
Alert Count                   1
First Seen                    Sun 30 Nov 2008 09:31:13 AM EST
Last Seen                     Sun 30 Nov 2008 09:31:13 AM EST
Local ID                      4e66ce85-96c7-4c30-b65a-7b07ed2eca6c
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1228055473.799:21): avc:  denied  { read } for  pid=3388 comm="consoletype" path="/var/lib/dhclient/dhclient-wlan0.leases" dev=sda2 ino=213100 scontext=unconfined_u:system_r:consoletype_t:s0 tcontext=unconfined_u:object_r:dhcpc_state_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1228055473.799:21): arch=40000003 syscall=11 success=yes exit=0 a0=9bae248 a1=9bb15b8 a2=9badfd0 a3=0 items=0 ppid=3387 pid=3388 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="consoletype" exe="/sbin/consoletype" subj=unconfined_u:system_r:consoletype_t:s0 key=(null)



Hash String generated from  selinux-policy-3.5.13-18.fc10,catchall_file,consoletype,consoletype_t,dhcpc_state_t,file,read
audit2allow suggests:

#============= consoletype_t ==============
allow consoletype_t dhcpc_state_t:file read;

Comment 1 Miroslav Grepl 2009-12-04 11:24:09 UTC

*** This bug has been marked as a duplicate of bug 538428 ***