[systemd-devel] systemd pam and O_CLOEXEC problem

Lennart Poettering lennart at poettering.net
Thu May 15 16:28:28 PDT 2014


On Mon, 05.05.14 20:33, dedede gfgfgf trtrtrtrtrtr (s.kabanov70 at mail.ru) wrote:

>  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.

Thanks for the pointer!

Fixed in git!

Thanks!

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list