Re: pam modules and setuid actions

Seven Reeds <[email protected]> Wed, 13 Mar 2013 12:00:42 -0500
Newsgroups gmane.linux.pam
Message-ID <CACtmOWB1WYeupNCiyFFSx2P0SsZoS6z3PpBuDKysP+7ThivW4w@mail.gmail.com>
Thanks Thomas.  I had not seen it stated anywhere about the effective
0 uid.  That is not the behaviour I am seeing and as you say, broken
calling apps may muck this up.

I'm going to write my own setuid executable and use pam_exec.  thanks all



On Wed, Mar 13, 2013 at 11:39 AM, Tomas Mraz <[email protected]> wrote:
>
> PAM session modules (that is the modules configured in the session stack
> and called through the pam_sm_open_session() and pam_sm_close_session())
> expect to be called with effective uid == 0. So there should be no need
> to add any setuid helper for this functionality. Of course there might
> be non-compliant applications that call the session modules with regular
> user id but other modules will be broken for them as well.
> --
> Tomas Mraz
> No matter how far down the wrong road you've gone, turn back.
>                                               Turkish proverb
>
> _______________________________________________
> Pam-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/pam-list