Bug 220070 - SELinux is preventing /usr/sbin/hald (hald_t) "getattr" access to /etc/auto.misc (automount_etc_t).
Summary: SELinux is preventing /usr/sbin/hald (hald_t) "getattr" access to /etc/auto.m...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-18 19:16 UTC by Tim McConnell
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: selinux-policy-2.4.6-37
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-28 15:28:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim McConnell 2006-12-18 19:16:54 UTC
Description of problem:
    SELinux denied access requested by /usr/sbin/hald. It is not expected that
    this access is required by /usr/sbin/hald 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.
    Please file a http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this
    package.

Allowing Access
    Sometimes labeling problems can cause SELinux denials.  You could try to
    restore the default system file context for /etc/auto.misc, restorecon -v
    /etc/auto.misc. There is currently no automatic way to allow this access.
    Instead, you can generate a local policy module to allow this access - see
    http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385 - or you can
    disable SELinux protection entirely for the application. Disabling SELinux
    protection is not recommended. Please file a
    http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.
    Changing the "hald_disable_trans" boolean to true will disable SELinux
    protection this application: "setsebool -P hald_disable_trans=1."

    The following command will allow this access:
    setsebool -P hald_disable_trans=1

Version-Release number of selected component (if applicable):


How reproducible:
Unknown 

Steps to Reproduce:
1. Recieve alert 
2. Run suggested command 
3.Recieve alert again 
  
Actual results:
Alert is reported 

Expected results:
Command to allow access and get rid of alert 

Additional info:
Source Context                system_u:system_r:hald_t
Target Context                system_u:object_r:automount_etc_t
Target Objects                /etc/auto.misc [ file ]
Affected RPM Packages         hal-0.5.8.1-5.fc6
                              [application]autofs-5.0.1-0.rc2.36 [target]
Policy RPM                    selinux-policy-2.4.6-7.fc6
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.disable_trans
Host Name                     red1.timmieland.private
Platform                      Linux red1.timmieland.private 2.6.18-1.2860.fc6xen
                              #1 SMP Tue Dec 5 14:28:32 EST 2006 i686 athlon
Alert Count                   24
Line Numbers                  

Raw Audit Messages            

avc: denied { getattr } for comm="hald" dev=dm-0 egid=68 euid=68
exe="/usr/sbin/hald" exit=-13 fsgid=68 fsuid=68 gid=68 items=0 name="auto.misc"
path="/etc/auto.misc" pid=2979 scontext=system_u:system_r:hald_t:s0 sgid=68
subj=system_u:system_r:hald_t:s0 suid=68 tclass=file
tcontext=system_u:object_r:automount_etc_t:s0 tty=(none) uid=68

Comment 1 Daniel Walsh 2007-02-14 21:35:28 UTC
Fixed in selinux-policy-2.4.6-37

Comment 2 Tim McConnell 2007-02-15 06:04:23 UTC
upgrading to selinux-policy-2.4.6-37 and forcing a system relabel resovled this
issue.


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