Bug 985151 - SELinux is preventing /usr/sbin/sshd from using the 'dyntransition' accesses on a process.
SELinux is preventing /usr/sbin/sshd from using the 'dyntransition' accesses ...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-07-16 19:28 EDT by Dan Mashal
Modified: 2013-07-17 05:00 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-07-17 05:00:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dan Mashal 2013-07-16 19:28:22 EDT
Description of problem:
SELinux is preventing /usr/sbin/sshd from using the 'dyntransition' accesses on a process.

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

If you believe that sshd should be allowed dyntransition access on processes labeled sshd_net_t by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
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:initrc_t:s0
Target Context                system_u:system_r:sshd_net_t:s0
Target Objects                 [ process ]
Source                        sshd
Source Path                   /usr/sbin/sshd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           openssh-server-6.2p2-3.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-63.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.10.0-0.rc7.git0.2.fc20.x86_64 #1
                              SMP Tue Jun 25 11:53:19 UTC 2013 x86_64 x86_64
Alert Count                   32
First Seen                    2013-07-16 16:06:33 PDT
Last Seen                     2013-07-16 16:08:33 PDT
Local ID                      d92a439b-676b-42bc-a93c-bc44abcac150

Raw Audit Messages
type=AVC msg=audit(1374016113.44:830): avc:  denied  { dyntransition } for  pid=24631 comm="sshd" scontext=system_u:system_r:initrc_t:s0 tcontext=system_u:system_r:sshd_net_t:s0 tclass=process

type=SYSCALL msg=audit(1374016113.44:830): arch=x86_64 syscall=write success=no exit=EACCES a0=6 a1=7f09e899d750 a2=20 a3=7fff1496bb50 items=0 ppid=24630 pid=24631 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=sshd exe=/usr/sbin/sshd subj=system_u:system_r:initrc_t:s0 key=(null)

Hash: sshd,initrc_t,sshd_net_t,process,dyntransition

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.10.0-0.rc7.git0.2.fc20.x86_64
type:           libreport
Comment 1 Miroslav Grepl 2013-07-17 05:00:32 EDT
Please try to execute

# restorecon -R -v /usr/sbin/sshd
# systemctl restart sshd

should fix your problem.

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