1*eb8dc403SDave Cobbley# 2*eb8dc403SDave Cobbley# /etc/pam.d/common-session-noninteractive - session-related modules 3*eb8dc403SDave Cobbley# common to all non-interactive services 4*eb8dc403SDave Cobbley# 5*eb8dc403SDave Cobbley# This file is included from other service-specific PAM config files, 6*eb8dc403SDave Cobbley# and should contain a list of modules that define tasks to be performed 7*eb8dc403SDave Cobbley# at the start and end of all non-interactive sessions. 8*eb8dc403SDave Cobbley# 9*eb8dc403SDave Cobbley 10*eb8dc403SDave Cobbley# here are the per-package modules (the "Primary" block) 11*eb8dc403SDave Cobbleysession [default=1] pam_permit.so 12*eb8dc403SDave Cobbley# here's the fallback if no module succeeds 13*eb8dc403SDave Cobbleysession requisite pam_deny.so 14*eb8dc403SDave Cobbley# prime the stack with a positive return value if there isn't one already; 15*eb8dc403SDave Cobbley# this avoids us returning an error just because nothing sets a success code 16*eb8dc403SDave Cobbley# since the modules above will each just jump around 17*eb8dc403SDave Cobbleysession required pam_permit.so 18*eb8dc403SDave Cobbley# and here are more per-package modules (the "Additional" block) 19*eb8dc403SDave Cobbleysession required pam_unix.so 20