[systemd-devel] systemd pam and O_CLOEXEC problem

dedede gfgfgf trtrtrtrtrtr s.kabanov70 at mail.ru
Mon May 5 09:33:01 PDT 2014


 Hello.
During my testing  of systemd pam sessions i discovered that session processes are not deleted automatically when i specify KillUserProcesses=yes in latest versions of systemd.
Investigations showed that since in pam_systemd.so we started to dup() fifo descriptor problem appeared. Dup does not set O_CLOEXEC flag. So after fork/exec
all child processes have that descriptor and when parent which open pam session dies, child processes continue to run.

Sergei.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140505/2fa076dd/attachment.html>


More information about the systemd-devel mailing list