Bug 671188

Summary: SELinux is preventing /usr/bin/sudo "setuid" access .
Product: [Fedora] Fedora Reporter: Walt <waltsaw>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 13CC: dwalsh, mgrepl, waltsaw
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:a7c723751eb47e51ec370d8501acc6b45b5b83bf9b5bf702f4a431f2c93115c6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-20 20:22:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Walt 2011-01-20 17:42:21 UTC
Summary:

SELinux is preventing /usr/bin/sudo "setuid" access .

Detailed Description:

SELinux denied access requested by sudo. It is not expected that this access is
required by sudo 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:user_t:s0
Target Context                user_u:user_r:user_t:s0
Target Objects                None [ capability ]
Source                        sudo
Source Path                   /usr/bin/sudo
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sudo-1.7.4p4-3.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-76.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.34.7-66.fc13.i686 #1
                              SMP Wed Dec 15 07:40:25 UTC 2010 i686 i686
Alert Count                   2
First Seen                    Wed 05 Jan 2011 08:04:03 AM EST
Last Seen                     Wed 05 Jan 2011 08:04:03 AM EST
Local ID                      b94eb0e1-849c-4cdf-a749-a88d6abc86b0
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1294232643.226:249): avc:  denied  { setuid } for  pid=6299 comm="sudo" capability=7  scontext=user_u:user_r:user_t:s0 tcontext=user_u:user_r:user_t:s0 tclass=capability

node=(removed) type=SYSCALL msg=audit(1294232643.226:249): arch=40000003 syscall=208 success=no exit=-1 a0=0 a1=1 a2=0 a3=d0 items=0 ppid=4998 pid=6299 auid=500 uid=0 gid=500 euid=0 suid=0 fsuid=0 egid=0 sgid=500 fsgid=0 tty=pts2 ses=6 comm="sudo" exe="/usr/bin/sudo" subj=user_u:user_r:user_t:s0 key=(null)



Hash String generated from  catchall,sudo,user_t,user_t,capability,setuid
audit2allow suggests:

#============= user_t ==============
allow user_t self:capability setuid;

Comment 1 Daniel Walsh 2011-01-20 20:22:09 UTC
A confined user_t user is not allowed to run the sudo command, if you want to run sudo you need to change to the staff_t user.