Bug 671188 - SELinux is preventing /usr/bin/sudo "setuid" access .
Summary: SELinux is preventing /usr/bin/sudo "setuid" access .
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:a7c723751eb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-20 17:42 UTC by Walt
Modified: 2011-01-20 20:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-20 20:22:09 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.