Bug 1145109 - cockpit-session will do GSSAPI logins
Summary: cockpit-session will do GSSAPI logins
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks: 1144561
TreeView+ depends on / blocked
 
Reported: 2014-09-22 12:10 UTC by Stef Walter
Modified: 2016-07-19 12:09 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.13.1-84.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 12:09:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stef Walter 2014-09-22 12:10:19 UTC
cockpit-session will start doing GSSAPI logins. The following selinux policy changes are required:

# cockpit-session PAM stack wants to talk to systemd via a socket
allow cockpit_session_t init_t:unix_stream_socket sendto;
allow cockpit_session_t tmp_t:file { create write open unlink };



Symptoms:

    cockpit-session: gssapi auth failed: Unspecified GSS failure.
        Minor code may provide more information (Cannot create replay
        cache file /var/tmp/HTTP_0: File exists)

audit: type=1400 audit(1411115120.035:21): avc:  denied  { sendto } for  pid=1176
        comm="cockpit-session" path="socket:[18680]" dev="sockfs" ino=18680
        scontext=system_u:system_r:cockpit_session_t:s0
        tcontext=system_u:system_r:init_t:s0 tclass=unix_stream_socket
        permissive=0

Comment 1 Miroslav Grepl 2014-09-22 14:19:39 UTC
commit b6b76edced6e8cce8914709c89eb211be3d7ec49
Author: Miroslav Grepl <mgrepl>
Date:   Mon Sep 22 16:18:52 2014 +0200

    Allow cockpit-session to do GSSAPI logins.

Comment 2 David Sommerseth 2015-02-04 15:10:44 UTC
Can this be fixed in f21 as well?  Just tried SPNEGO/GSSAPI authentication but failed due to this issue. All I needed to do locally to add this SELinux policy:

   allow cockpit_session_t tmp_t:file { write create open unlink };

Comment 3 Daniel Walsh 2015-02-05 10:57:12 UTC
We would need a transition rule to cockpic_session_tmp_t

Comment 4 Daniel Walsh 2015-02-05 10:59:00 UTC
4e6bdce702835c74cf81053b911b747049a2775c fixes this in git.

Comment 5 Jaroslav Reznik 2015-03-03 17:04:03 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 6 Fedora End Of Life 2016-07-19 12:09:16 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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