Bug 698880 - SELinux is preventing /usr/sbin/sshd from using the 'getcap' accesses on a process.
Summary: SELinux is preventing /usr/sbin/sshd from using the 'getcap' accesses on a pr...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:97f4fdee049...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-22 07:01 UTC by Michal Hlavinka
Modified: 2016-05-11 18:20 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-26 12:54:05 UTC
Type: ---


Attachments (Terms of Use)

Description Michal Hlavinka 2011-04-22 07:01:31 UTC
happened on target machine during scp file transfer


SELinux is preventing /usr/sbin/sshd from using the 'getcap' accesses on a process.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that sshd should be allowed getcap access on processes labeled sshd_t by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep sshd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:sshd_t:s0-s0:c0.c1023
Target Context                system_u:system_r:sshd_t:s0-s0:c0.c1023
Target Objects                Unknown [ process ]
Source                        sshd
Source Path                   /usr/sbin/sshd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           openssh-server-5.6p1-30.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-16.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.3-17.fc15.x86_64 #1 SMP
                              Tue Apr 19 20:54:44 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 22 Apr 2011 08:56:25 AM CEST
Last Seen                     Fri 22 Apr 2011 08:56:25 AM CEST
Local ID                      8fe1f204-6b64-428b-a413-f6c32d6b6d10

Raw Audit Messages
type=AVC msg=audit(1303455385.578:84): avc:  denied  { getcap } for  pid=20163 comm="sshd" scontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tclass=process


type=SYSCALL msg=audit(1303455385.578:84): arch=x86_64 syscall=capget success=yes exit=0 a0=7f6a6acc52e4 a1=7f6a6acc52ec a2=7f6a66cf41e0 a3=0 items=0 ppid=1118 pid=20163 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4 comm=sshd exe=/usr/sbin/sshd subj=system_u:system_r:sshd_t:s0-s0:c0.c1023 key=(null)

Hash: sshd,sshd_t,sshd_t,process,getcap

audit2allow

#============= sshd_t ==============
allow sshd_t self:process getcap;

audit2allow -R

#============= sshd_t ==============
allow sshd_t self:process getcap;

Comment 1 Miroslav Grepl 2011-04-22 10:22:05 UTC
Fixed in selinux-policy-3.9.16-17.fc16


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