[systemd-devel] systemd pam and O_CLOEXEC problem

Colin Walters walters at verbum.org
Fri May 9 04:07:45 PDT 2014



On Mon, May 5, 2014 at 6:48 AM, dedede gfgfgf trtrtrtrtrtr 
<s.kabanov70 at mail.ru> wrote:
> Investigations showed that since in pam module we started to dup fifo 
> descriptor problem appeared. Dup does not set O_CLOEXEC flag. So 
> after fork/exec
> all children processes have that descriptor and when parent which 
> open pam session dies, children processes continue to run.

I think you should change your login program to close unnecessary FDs 
before executing children. 





More information about the systemd-devel mailing list