Bug 576806 - SELinux is preventing /bin/bash "search" access on /home.
Summary: SELinux is preventing /bin/bash "search" access on /home.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:683ee24d45f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-25 10:03 UTC by Maciej Żenczykowski
Modified: 2010-04-09 01:24 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.6.32-108.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-09 01:24:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Maciej Żenczykowski 2010-03-25 10:03:50 UTC
Summary:

SELinux is preventing /bin/bash "search" access on /home.

Detailed Description:

[prelink has a permissive type (prelink_cron_system_t). This access was not
denied.]

SELinux denied access requested by prelink. It is not expected that this access
is required by prelink 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://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:prelink_cron_system_t:s0-s0:c0.c
                              1023
Target Context                system_u:object_r:home_root_t:s0
Target Objects                /home [ dir ]
Source                        prelink
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.0.35-2.fc12
Target RPM Packages           filesystem-2.4.30-2.fc12
Policy RPM                    selinux-policy-3.6.32-103.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.32.9-70.fc12.x86_64 #1 SMP Wed
                              Mar 3 04:40:41 UTC 2010 x86_64 x86_64
Alert Count                   22
First Seen                    Tue 09 Feb 2010 03:15:00 AM PST
Last Seen                     Tue 23 Mar 2010 03:46:23 AM PDT
Local ID                      412ac75a-b3b0-4f72-88c7-134ec31714bb
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1269341183.224:9317): avc:  denied  { search } for  pid=28127 comm="prelink" name="/" dev=dm-3 ino=2 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1269341183.224:9317): arch=c000003e syscall=4 success=yes exit=0 a0=281af90 a1=7fff22951ad0 a2=7fff22951ad0 a3=8 items=0 ppid=27079 pid=28127 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=354 comm="prelink" exe="/bin/bash" subj=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,prelink,prelink_cron_system_t,home_root_t,dir,search
audit2allow suggests:

#============= prelink_cron_system_t ==============
allow prelink_cron_system_t home_root_t:dir search;

Comment 1 Maciej Żenczykowski 2010-03-25 10:07:09 UTC
$ ls -alZd / /home
dr-xr-xr-x. root root system_u:object_r:root_t:s0      /
drwxr-xr-x. root root system_u:object_r:home_root_t:s0 /home

I also get a similar error on '/' but that's with '/' as the root of the device mounted at /home.

Comment 2 Daniel Walsh 2010-03-25 16:38:24 UTC
Miroslav add

files_dontaudit_search_all_mountpoints(prelink_cron_system_t)

Comment 3 Miroslav Grepl 2010-03-26 06:56:57 UTC
Fixed in selinux-policy-3.6.32-107.fc12

Comment 4 Fedora Update System 2010-03-30 19:47:36 UTC
selinux-policy-3.6.32-108.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-108.fc12

Comment 5 Fedora Update System 2010-04-01 01:53:33 UTC
selinux-policy-3.6.32-108.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-108.fc12

Comment 6 Fedora Update System 2010-04-09 01:23:12 UTC
selinux-policy-3.6.32-108.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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