0

I'm writing a Linux PAM module which embeds the Python interpreter using the Python/C API. This basically allows you to write PAM modules in Python.

I'm following the The Linux-PAM Module Writers' Guide where in section 2 it says that

The [PAM] modules may be dynamically loadable objects. In general such files should not contain static variables

I would like to know why dynamic loading and static variables don't go together and what could happen if I use them in my PAM module, as the Python interpreter does use static variables.

TomasR
  • 45
  • 3
  • 4

0 Answers0