Bug 1115977

Summary: Add pam_reauthorize.so to /etc/pam.d/sshd
Product: [Fedora] Fedora Reporter: Stef Walter <stefw>
Component: opensshAssignee: Petr Lautrbach <plautrba>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mattias.ellert, mgrepl, plautrba, stefw, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1204233 (view as bug list) Environment:
Last Closed: 2014-07-17 11:47:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1091301    
Attachments:
Description Flags
Add pam_reauthorize.so to sshd.pam none

Description Stef Walter 2014-07-03 12:47:19 UTC
As discussed elsewhere, for Fedora Server we want to have pam_reauthorize.so late in the auth and session PAM stacks for sshd.

https://github.com/stefwalter/cockpit/blob/reauthorize/doc/reauthorize.md

Will post patch.

Comment 1 Stef Walter 2014-07-03 12:48:38 UTC
There's many ways to do this, but for now the simple approach seems to be best, just adding the relevant lines to /etc/pam.d/sshd:

# Used with polkit to reauthorize users in remote sessions
-auth      optional     pam_reauthorize.so prepare

# Used with polkit to reauthorize users in remote sessions
-session   optional     pam_reauthorize.so prepare

Comment 2 Stef Walter 2014-07-03 12:55:09 UTC
Created attachment 914455 [details]
Add pam_reauthorize.so to sshd.pam

I've done some tests on this. In addition you can add a 'debug' flag to the PAM stack lines, and see further output in the logs.