Bug 578566 - SELinux is preventing /bin/bash "read write open" access .
Summary: SELinux is preventing /bin/bash "read write open" access .
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:a92826b0478...
: 564007 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-31 16:38 UTC by Daniel Scott
Modified: 2010-04-20 13:20 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.6.32-110.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-20 13:20:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Scott 2010-03-31 16:38:21 UTC
Summary:

SELinux is preventing /bin/bash "read write open" access .

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by bash. It is not expected that this access is
required by bash 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:afs_t:s0
Target Context                system_u:object_r:unlabeled_t:s0
Target Objects                 [ file ]
Source                        afsd
Source Path                   /usr/sbin/afsd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.0.35-2.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-106.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.32.10-90.fc12.x86_64 #1
                              SMP Tue Mar 23 09:47:08 UTC 2010 x86_64 x86_64
Alert Count                   7
First Seen                    Wed 31 Mar 2010 12:17:49 PM EDT
Last Seen                     Wed 31 Mar 2010 12:32:29 PM EDT
Local ID                      00941f3a-98f0-46ef-9eb9-658443e282fa
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1270053149.736:26): avc:  denied  { read write open } for  pid=3110 comm="bash" name="" dev=dm-0 ino=36738843 scontext=system_u:system_r:afs_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1270053149.736:26): arch=c000003e syscall=4 success=no exit=-2 a0=1bbb6f0 a1=7fffb5113b80 a2=7fffb5113b80 a3=2f items=0 ppid=3091 pid=3110 auid=768 uid=768 gid=1002 euid=768 suid=768 fsuid=768 egid=1002 sgid=1002 fsgid=1002 tty=pts2 ses=1 comm="bash" exe="/bin/bash" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,afsd,afs_t,unlabeled_t,file,read,write,open
audit2allow suggests:

#============= afs_t ==============
#!!!! The source type 'afs_t' can write to a 'file' of the following types:
# etc_runtime_t, afs_cache_t, proc_afs_t, root_t

allow afs_t unlabeled_t:file { read write open };

Comment 1 Daniel Walsh 2010-03-31 19:13:36 UTC
This looks like a kernel bug in the way the afs modules works.  Since this is not part of Fedora or RHEL, I am not sure it will get fixed.  I will 

Miroslav can you add

ifdef(`hide_broken_symptoms', `
	kernel_rw_unlabeled_files(afs_t)
')

Comment 2 Miroslav Grepl 2010-04-02 08:05:18 UTC
Fixed in selinux-policy-3.6.32-109.fc12

Comment 3 Fedora Update System 2010-04-09 13:26:01 UTC
selinux-policy-3.6.32-110.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-110.fc12

Comment 4 Fedora Update System 2010-04-10 10:30:56 UTC
selinux-policy-3.6.32-110.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-110.fc12

Comment 5 Miroslav Grepl 2010-04-13 08:16:52 UTC
*** Bug 564007 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2010-04-20 13:19:25 UTC
selinux-policy-3.6.32-110.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.