Bug 543414 - SELinux is preventing hal-acl-tool (hald_acl_t) "search" to / (user_home_t).
Summary: SELinux is preventing hal-acl-tool (hald_acl_t) "search" to / (user_home_t).
Keywords:
Status: CLOSED DUPLICATE of bug 538428
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:8a5c091180e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-02 11:06 UTC by Iftikhar
Modified: 2009-12-02 11:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-02 11:11:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Iftikhar 2009-12-02 11:06:55 UTC
Summary:

SELinux is preventing hal-acl-tool (hald_acl_t) "search" to / (user_home_t).

Detailed Description:

SELinux denied access requested by hal-acl-tool. / may be a mislabeled. /
default SELinux type is root_t, but its current type is user_home_t. Changing
this file back to the default type, may fix your problem.

File contexts can be assigned to a file in the following ways.

  * Files created in a directory receive the file context of the parent
    directory by default.
  * The SELinux policy might override the default label inherited from the
    parent directory by specifying a process running in context A which creates
    a file in a directory labeled B will instead create the file with label C.
    An example of this would be the dhcp client running with the dhclient_t type
    and creates a file in the directory /etc. This file would normally receive
    the etc_t type due to parental inheritance but instead the file is labeled
    with the net_conf_t type because the SELinux policy specifies this.
  * Users can change the file context on a file using tools such as chcon, or
    restorecon.

This file could have been mislabeled either by user error, or if an normally
confined application was run under the wrong domain.

However, this might also indicate a bug in SELinux because the file should not
have been labeled with this type.

If you believe this is a bug, please file a bug report
(http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Allowing Access:

You can restore the default system context to this file by executing the
restorecon command. restorecon '/', if this file is a directory, you can
recursively restore using restorecon -R '/'.

Fix Command:

restorecon '/'

Additional Information:

Source Context                system_u:system_r:hald_acl_t:s0
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                / [ dir ]
Source                        hal-acl-tool
Source Path                   /usr/libexec/hal-acl-tool
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           hal-0.5.12-12.20081027git.fc10
Target RPM Packages           filesystem-2.4.19-1.fc10
Policy RPM                    selinux-policy-3.5.13-38.fc10
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   restorecon
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                   1223
First Seen                    Mon 12 Jan 2009 12:59:48 PM GMT
Last Seen                     Mon 12 Jan 2009 09:51:02 PM GMT
Local ID                      25b1d12f-985d-4d93-8602-26ef41e3622c
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1231797062.747:822): avc:  denied  { search } for  pid=4857 comm="hal-acl-tool" name="/" dev=dm-0 ino=2 scontext=system_u:system_r:hald_acl_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1231797062.747:822): arch=40000003 syscall=33 success=no exit=-13 a0=2975e6 a1=4 a2=29dfc0 a3=0 items=0 ppid=2047 pid=4857 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="hal-acl-tool" exe="/usr/libexec/hal-acl-tool" subj=system_u:system_r:hald_acl_t:s0 key=(null)



Hash String generated from  selinux-policy-3.5.13-38.fc10,restorecon,hal-acl-tool,hald_acl_t,user_home_t,dir,search
audit2allow suggests:

#============= hald_acl_t ==============
allow hald_acl_t user_home_t:dir search;

Comment 1 Miroslav Grepl 2009-12-02 11:11:53 UTC

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


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