Bug 579759

Summary: SELinux is preventing /bin/login "entrypoint" access on /bin/bash.
Product: [Fedora] Fedora Reporter: David R. Fischer <fischer.d.r>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:b87f2b0a6ac4ee9c371e3afeb956ce6bb90c726cc617a6b76e35dc8756c9cded
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-19 11:10:21 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 David R. Fischer 2010-04-06 13:35:44 UTC
Summary:

SELinux is preventing /bin/login "entrypoint" access on /bin/bash.

Detailed Description:

SELinux denied access requested by login. It is not expected that this access is
required by login 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                user_u:user_r:policykit_grant_t:s0
Target Context                system_u:object_r:shell_exec_t:s0
Target Objects                /bin/bash [ file ]
Source                        login
Source Path                   login
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           util-linux-ng-2.16.2-7.fc12
Target RPM Packages           bash-4.0.35-2.fc12
Policy RPM                    selinux-policy-3.6.32-106.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
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                   5
First Seen                    Mon 05 Apr 2010 06:18:00 PM MST
Last Seen                     Mon 05 Apr 2010 07:04:49 PM MST
Local ID                      ade5fcfd-98c4-4535-9d2f-fd90c0023fd7
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1270519489.235:41): avc:  denied  { entrypoint } for  pid=2298 comm="login" path="/bin/bash" dev=dm-0 ino=4669529 scontext=user_u:user_r:policykit_grant_t:s0 tcontext=system_u:object_r:shell_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1270519489.235:41): arch=c000003e syscall=59 success=no exit=-13 a0=153a4e0 a1=7fff3731a298 a2=15a7400 a3=7fff37319d80 items=0 ppid=2280 pid=2298 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts0 ses=4 comm="login" exe="/bin/login" subj=system_u:system_r:initrc_t:s0 key=(null)



Hash String generated from  catchall,login,policykit_grant_t,shell_exec_t,file,entrypoint
audit2allow suggests:

#============= policykit_grant_t ==============
allow policykit_grant_t shell_exec_t:file entrypoint;

Comment 1 Daniel Walsh 2010-04-06 15:42:26 UTC
Something is very strange on your machine.  I think you are badly mislabeled.  Since it looks like login is running as policykit_grant_t????

touch /.autorelabel; reboot

To fix the labels.