Bug 1035326 - SELinux is preventing /usr/sbin/sshd from using the 'dyntransition' accesses on a process.
Summary: SELinux is preventing /usr/sbin/sshd from using the 'dyntransition' accesses ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:de067b33678292f1b533b5b3d68...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-27 14:51 UTC by Bahtiar `kalkin` Gadimov
Modified: 2013-11-27 16:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-27 16:42:12 UTC
Type: ---


Attachments (Terms of Use)

Description Bahtiar `kalkin` Gadimov 2013-11-27 14:51:36 UTC
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.
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:init_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.3p1-5.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-90.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.8-300.fc20.x86_64 #1 SMP Wed
                              Nov 13 16:34:27 UTC 2013 x86_64 x86_64
Alert Count                   5
First Seen                    2013-11-23 20:39:51 CET
Last Seen                     2013-11-27 02:27:39 CET
Local ID                      7c40528a-29dc-47d6-b60e-f20b4e202207

Raw Audit Messages
type=AVC msg=audit(1385515659.188:3364): avc:  denied  { dyntransition } for  pid=30136 comm="sshd" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:sshd_net_t:s0 tclass=process


type=SYSCALL msg=audit(1385515659.188:3364): arch=x86_64 syscall=write success=no exit=EACCES a0=6 a1=7fa0583aebd0 a2=20 a3=7fffea55ba10 items=0 ppid=30135 pid=30136 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:init_t:s0 key=(null)

Hash: sshd,init_t,sshd_net_t,process,dyntransition

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.8-300.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-11-27 16:42:12 UTC
If you execute

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

does it help? If no, please reopen the bug.


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