pam-list-request@xxxxxxxxxx wrote: > > Subject: > Dropping privs by PAM modules. > From: > s_n <jusnet@xxxxx> > Date: > Mon, 11 Dec 2006 19:34:14 +0100 > To: > pam-list@xxxxxxxxxx > > To: > pam-list@xxxxxxxxxx > > > Hi, > > I'm just wondering about dropping privilages by pam modules, does it > make sense to you anyway? How to consider such behaviour, improved > security or is it just security by obscurity? Anyway, imagine badly > coded module, which can be circumvented by an attacker and used to > launch his own code. Will dropping privs mitigate the possible loses > coused by such malicious code? What are you thinking about it? > > Sincerly, > Filip (s_n) Palian. > > Filip, IMHO i's good use to drop privileges when you don't need them, just to protect you against your own coding-quirks. You can regain privileges at any time if the need arises up to the user's base privilege level. To equip PAM modules with root privileges there is no other way but using a helper process which is made SUID. This construct is used by a few PAM modules, namely pam_unix to cope with shadow password authentication. Regards, Andreas _______________________________________________ Pam-list mailing list Pam-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/pam-list