[cgmanager-devel] [lxc/cgmanager] 76a000: pam_cgm: check for NULL pointer returned by pam_ge...

0 views
Skip to first unread message

GitHub

unread,
Mar 22, 2018, 10:52:42 PM3/22/18
to cgmanag...@lists.linuxcontainers.org
Branch: refs/heads/master
Home: https://github.com/lxc/cgmanager
Commit: 76a000c2c3f81fba0ab9b674cead83c85e766d0f
https://github.com/lxc/cgmanager/commit/76a000c2c3f81fba0ab9b674cead83c85e766d0f
Author: Maciej S. Szmigiero <ma...@maciej.szmigiero.name>
Date: 2018-03-17 (Sat, 17 Mar 2018)

Changed paths:
M pam/pam_cgm.c

Log Message:
-----------
pam_cgm: check for NULL pointer returned by pam_get_data() in session close

It turns out that PAM can call module pam_sm_close_session() function even
though this module pam_sm_open_session() returned an error.

In this case pam_get_data() in pam_sm_close_session() will return NULL - we
need to check for that.

Signed-off-by: Maciej S. Szmigiero <ma...@maciej.szmigiero.name>


Commit: 9ec30c3d6c7f3e0eb5bab3ba02846c042e520b4f
https://github.com/lxc/cgmanager/commit/9ec30c3d6c7f3e0eb5bab3ba02846c042e520b4f
Author: Serge Hallyn <se...@hallyn.com>
Date: 2018-03-22 (Thu, 22 Mar 2018)

Changed paths:
M pam/pam_cgm.c

Log Message:
-----------
Merge pull request #37 from maciejsszmigiero/pam_cgm-session-close-NULL-check

check for NULL pointer returned by pam_get_data() in session close


Compare: https://github.com/lxc/cgmanager/compare/b9685abdfdbb...9ec30c3d6c7f

Reply all
Reply to author
Forward
0 new messages