Bug 628025

Summary: SELinux is preventing /bin/bash "write" access on /tmp.
Product: [Fedora] Fedora Reporter: Gene Snider <genes1122>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:a8390aa7ad36b90a6607e85e36c8d2ab0c868c2d1d3fc85b916be43b0ac5ea65
Fixed In Version: selinux-policy-3.9.0-2.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-08 04:32:29 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 Gene Snider 2010-08-27 17:08:03 UTC
Summary:

SELinux is preventing /bin/bash "write" access on /tmp.

Detailed Description:

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

SELinux denied access requested by 98video-quirk-d. It is not expected that this
access is required by 98video-quirk-d 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:devicekit_power_t:s0
Target Context                system_u:object_r:tmp_t:s0
Target Objects                /tmp [ dir ]
Source                        98video-quirk-d
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.7-3.fc14
Target RPM Packages           filesystem-2.4.35-1.fc14
Policy RPM                    selinux-policy-3.9.0-1.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.4-12.fc14.x86_64 #1 SMP Fri
                              Aug 27 07:45:05 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 27 Aug 2010 10:05:00 AM PDT
Last Seen                     Fri 27 Aug 2010 10:05:00 AM PDT
Local ID                      3fad7dd8-b847-4701-a1b3-f22f23ad8986
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1282928700.115:16): avc:  denied  { write } for  pid=3377 comm="98video-quirk-d" name="/" dev=tmpfs ino=11924 scontext=system_u:system_r:devicekit_power_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1282928700.115:16): arch=c000003e syscall=21 success=yes exit=0 a0=4ba43f a1=2 a2=0 a3=1001 items=0 ppid=3311 pid=3377 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="98video-quirk-d" exe="/bin/bash" subj=system_u:system_r:devicekit_power_t:s0 key=(null)



Hash String generated from  catchall,98video-quirk-d,devicekit_power_t,tmp_t,dir,write
audit2allow suggests:

#============= devicekit_power_t ==============
#!!!! The source type 'devicekit_power_t' can write to a 'dir' of the following types:
# var_lib_t, var_log_t, hald_var_run_t, devicekit_var_lib_t, hald_log_t

allow devicekit_power_t tmp_t:dir write;

Comment 1 Gene Snider 2010-08-27 17:10:44 UTC
This AVC denial and seven others appear after resuming from suspend.  I filed the ones that seemed somewhat unrelated.

Gene

Comment 2 Daniel Walsh 2010-08-30 14:15:58 UTC
Fixed in selinux-policy-3.9.0-2.fc14

Comment 3 Daniel Walsh 2010-08-30 14:16:55 UTC
*** Bug 628026 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2010-08-30 15:59:56 UTC
selinux-policy-3.9.0-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.0-2.fc14

Comment 5 Fedora Update System 2010-08-30 19:38:34 UTC
selinux-policy-3.9.0-2.fc14 has been pushed to the Fedora 14 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: https://admin.fedoraproject.org/updates/selinux-policy-3.9.0-2.fc14

Comment 6 Fedora Update System 2010-09-08 04:30:48 UTC
selinux-policy-3.9.0-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.