Bug 656856

Summary: SELinux is preventing /bin/bash "signal" access .
Product: [Fedora] Fedora Reporter: Amit Shah <amit.shah>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:c1256e104234c14c4f41ed8320e92b3d9dcdc8fcddb5be994884a9a838db5a42
Fixed In Version: selinux-policy-3.9.7-14.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-05 00:37:51 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 Amit Shah 2010-11-24 11:25:50 UTC
Summary:

SELinux is preventing /bin/bash "signal" access .

Detailed Description:

[sandboxX.sh has a permissive type (sandbox_web_t). This access was not denied.]

SELinux denied access requested by sandboxX.sh. It is not expected that this
access is required by sandboxX.sh 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                unconfined_u:unconfined_r:sandbox_web_t:s0:c473,c5
                              43
Target Context                unconfined_u:unconfined_r:sandbox_xserver_t:s0:c41
                              1,c815
Target Objects                None [ process ]
Source                        sandboxX.sh
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.7-3.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-12.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.6-48.fc14.x86_64
                              #1 SMP Fri Oct 22 15:36:08 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Wed 24 Nov 2010 04:54:12 PM IST
Last Seen                     Wed 24 Nov 2010 04:54:12 PM IST
Local ID                      c177bc6e-af78-40e8-9b72-134fe667b7ca
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1290597852.232:239): avc:  denied  { signal } for  pid=7992 comm="sandboxX.sh" scontext=unconfined_u:unconfined_r:sandbox_web_t:s0:c473,c543 tcontext=unconfined_u:unconfined_r:sandbox_xserver_t:s0:c411,c815 tclass=process

node=(removed) type=AVC msg=audit(1290597852.232:239): avc:  denied  { signal } for  pid=7992 comm="sandboxX.sh" scontext=unconfined_u:unconfined_r:sandbox_web_t:s0:c473,c543 tcontext=unconfined_u:unconfined_r:sandbox_xserver_t:s0:c839,c946 tclass=process

node=(removed) type=SYSCALL msg=audit(1290597852.232:239): arch=c000003e syscall=62 success=yes exit=0 a0=0 a1=1 a2=0 a3=1999999999999999 items=0 ppid=7984 pid=7992 auid=500 uid=500 gid=501 euid=500 suid=500 fsuid=500 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm="sandboxX.sh" exe="/bin/bash" subj=unconfined_u:unconfined_r:sandbox_web_t:s0:c473,c543 key=(null)



Hash String generated from  catchall,sandboxX.sh,sandbox_web_t,sandbox_xserver_t,process,signal
audit2allow suggests:

#============= sandbox_web_t ==============
#!!!! This avc is a constraint violation.  You will need to add an attribute to either the source or target type to make it work.
#Contraint rule: 
allow sandbox_web_t sandbox_xserver_t:process signal;

Comment 1 Daniel Walsh 2010-11-24 13:52:19 UTC
Miroslav add

dontaudit sandbox_x_domain sandbox_xserver_t:process signal;

Comment 2 Miroslav Grepl 2010-12-01 11:30:03 UTC
Fixed in selinux-policy-3.9.7-14.fc14

Comment 3 Fedora Update System 2010-12-02 08:18:53 UTC
selinux-policy-3.9.7-14.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-14.fc14

Comment 4 Fedora Update System 2010-12-02 19:14:31 UTC
selinux-policy-3.9.7-14.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.7-14.fc14

Comment 5 Fedora Update System 2010-12-05 00:36:55 UTC
selinux-policy-3.9.7-14.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.