Bug 698880

Summary: SELinux is preventing /usr/sbin/sshd from using the 'getcap' accesses on a process.
Product: [Fedora] Fedora Reporter: Michal Hlavinka <mhlavink>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: agpotter, dwalsh, geminic86, jlaska, justin.brown1.1, mads, mgrepl, mschmidt, phdoerfler, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:97f4fdee049b89e6539bd00d786a9fe67d669c6e26e8dd1c2ad803fe85a61879
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-26 12:54:05 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 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