Bug 1559253 - SELinux is preventing ssh-keygen from 'map' accesses on the Datei /usr/bin/ssh-keygen.
Summary: SELinux is preventing ssh-keygen from 'map' accesses on the Datei /usr/bin/ss...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: snapd
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zygmunt Krynicki
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3a468c69f21999eecf05d346d05...
: 1576856 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-22 05:20 UTC by Alexander Funkner
Modified: 2018-09-06 02:31 UTC (History)
9 users (show)

Fixed In Version: snapd-2.35-1.fc28 snapd-2.35-1.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-08-30 04:55:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alexander Funkner 2018-03-22 05:20:04 UTC
Description of problem:
SELinux is preventing ssh-keygen from 'map' accesses on the Datei /usr/bin/ssh-keygen.

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

If you believe that ssh-keygen should be allowed map access on the ssh-keygen file by default.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
allow this access for now by executing:
# ausearch -c 'ssh-keygen' --raw | audit2allow -M my-sshkeygen
# semodule -X 300 -i my-sshkeygen.pp

Additional Information:
Source Context                system_u:system_r:snappy_t:s0
Target Context                system_u:object_r:ssh_keygen_exec_t:s0
Target Objects                /usr/bin/ssh-keygen [ file ]
Source                        ssh-keygen
Source Path                   ssh-keygen
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           openssh-7.6p1-5.fc27.x86_64
Policy RPM                    selinux-policy-3.13.1-283.26.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.15.9-300.fc27.x86_64 #1 SMP Mon
                              Mar 12 17:07:55 UTC 2018 x86_64 x86_64
Alert Count                   1
First Seen                    2018-03-22 06:05:16 CET
Last Seen                     2018-03-22 06:05:16 CET
Local ID                      0ba067f5-9f2d-459f-baa1-be900173ca38

Raw Audit Messages
type=AVC msg=audit(1521695116.812:272): avc:  denied  { map } for  pid=2607 comm="ssh-keygen" path="/usr/bin/ssh-keygen" dev="sdb3" ino=6175560 scontext=system_u:system_r:snappy_t:s0 tcontext=system_u:object_r:ssh_keygen_exec_t:s0 tclass=file permissive=1


Hash: ssh-keygen,snappy_t,ssh_keygen_exec_t,file,map

Version-Release number of selected component:
selinux-policy-3.13.1-283.26.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.15.9-300.fc27.x86_64
type:           libreport

Comment 1 Damian Hosty 2018-05-10 14:42:29 UTC
*** Bug 1576856 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Update System 2018-08-25 21:43:24 UTC
snapd-glib-1.43-1.fc28 snapd-2.35-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5d4624b7af

Comment 3 Fedora Update System 2018-08-25 21:44:35 UTC
snapd-glib-1.43-1.fc27 snapd-2.35-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-14918a503a

Comment 4 Fedora Update System 2018-08-26 22:51:52 UTC
snapd-2.35-1.fc27, snapd-glib-1.43-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-14918a503a

Comment 5 Fedora Update System 2018-08-27 00:26:37 UTC
snapd-2.35-1.fc28, snapd-glib-1.43-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-5d4624b7af

Comment 6 Fedora Update System 2018-08-30 04:55:53 UTC
snapd-2.35-1.fc28, snapd-glib-1.43-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2018-09-06 02:31:14 UTC
snapd-2.35-1.fc27, snapd-glib-1.43-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


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