Adding scripts for reproducer.

** Description changed:

  In case of the following scenario:
  1. PAM configured to run auth and session with pam_exec scripts synchronizing 
via SIGUSR1
  2. Using GDM as the login manager causes SIGUSR1 never reaches the target 
scripts.
  
  Workaround:
  a) Use SIGUSR2 in the scripts.
  b) Comment out block_sigusr1() call in daemon/main.c.
+ 
+ To reproduce add the following entries:
+ /etc/pam.d/common-auth:
+ auth  optional        pam_exec.so log=/tmp/auth.log expose_authtok quiet 
/usr/local/bin/auth.py
+ 
+ /etc/pam.d/common-session:
+ session       optional  pam_exec.so   log=/tmp/session.log  
/usr/local/bin/session.py
+ 
+ Attaching example scripts.
+ When using SIGUSR1 - sigusr1_handler is never called, with SIGUSR2 it is 
called without issues.

** Attachment added: "auth.py"
   
https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/1782152/+attachment/5164561/+files/auth.py

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gdm in Ubuntu.
https://bugs.launchpad.net/bugs/1782152

Title:
  GDM blocks SIGUSR1 used in PAM scripts

Status in gdm package in Ubuntu:
  New

Bug description:
  In case of the following scenario:
  1. PAM configured to run auth and session with pam_exec scripts synchronizing 
via SIGUSR1
  2. Using GDM as the login manager causes SIGUSR1 never reaches the target 
scripts.

  Workaround:
  a) Use SIGUSR2 in the scripts.
  b) Comment out block_sigusr1() call in daemon/main.c.

  To reproduce add the following entries:
  /etc/pam.d/common-auth:
  auth  optional        pam_exec.so log=/tmp/auth.log expose_authtok quiet 
/usr/local/bin/auth.py

  /etc/pam.d/common-session:
  session       optional  pam_exec.so   log=/tmp/session.log  
/usr/local/bin/session.py

  Attaching example scripts.
  When using SIGUSR1 - sigusr1_handler is never called, with SIGUSR2 it is 
called without issues.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/1782152/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to