First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 151173
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: wgja@sanger.ac.uk
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 151173 depends on: 182301 183886 183887 183888 183890 183958 183961 Show dependency tree
Show dependency graph
Bug 151173 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-10-13 06:23 0000
Hi,

I'm a bit confused by the order in which the pam modules are executed in the
/etc/pam.d/sshd file for the 'auth' module-type on my gentoo box. Here are the
relevant contents of /etc/pam.d/sshd:

auth include system-auth
auth required pam_shells.so
auth required pam_nologin.so

Which, when /etc/pam.d/system-auth is included, translates to:
auth required pam_env.so
auth sufficient pam_unix.so likeauth nullok
auth required pam_deny.so
auth required pam_shells.so
auth required pam_nologin.so

From my understanding of PAM, if unix authentication using the pam_unix module
is successful, the 'sufficient' keyword tells PAM not to process the others
down the list. Besides, if authentication has failed, pam_deny is executed, and
it's irrelevant whether pam_shells and pam_nologin return success or failure.

Wouldn't it be better to have the pam_shells and pam_nologin modules execute
before the pam_unix module?

Regards,
Will

emerge --info:
Portage 2.1.2_pre2-r9 (default-linux/x86/2006.1/desktop, gcc-3.4.6,
glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System version 1.12.5
Last Sync: Fri, 13 Oct 2006 01:53:01 +0000

------- Comment #1 From Matt Drew 2006-10-13 07:06:19 0000 -------
the same issue exists in:

/etc/pam.d/login
/etc/pam.d/xdm

Problem would result in the failure of /etc/nologin to function properly, and
bypasses the /etc/shells check.

------- Comment #2 From Sune Kloppenborg Jeppesen 2006-11-20 23:32:49 0000 -------
pam-bugs please advise.

------- Comment #3 From Sune Kloppenborg Jeppesen 2006-12-11 08:27:18 0000 -------
pam-bugs please advise.

------- Comment #4 From Diego E. 'Flameeyes' Pettenò 2006-12-11 12:30:31 0000 -------
The include line should probably be at the end instead of at the top.

------- Comment #5 From Robin Johnson 2006-12-11 12:33:02 0000 -------
yeah, the include line should be moved down.

------- Comment #6 From Sune Kloppenborg Jeppesen 2006-12-11 12:48:48 0000 -------
Accepting bug and awaiting fixed ebuild.

------- Comment #7 From Robin Johnson 2006-12-11 14:31:36 0000 -------
security: you'll have to find who the various broken files in /etc/pam.d/
belong to, and get them on here.

------- Comment #8 From Sune Kloppenborg Jeppesen 2006-12-11 21:04:43 0000 -------
Duh, too many bugs to handle. Thx for the pointer robbat2:-)

Teams please fix your files placed in /etc/pam.d/:

/etc/pam.d/sshd
/etc/pam.d/login
/etc/pam.d/xdm

------- Comment #9 From Donnie Berkholz 2006-12-11 22:03:09 0000 -------
Fixed in xdm-1.1.2-r1, and for anyone who emerges any version after today.

------- Comment #10 From Jakub Moc (RETIRED) 2007-01-08 22:18:35 0000 -------
*** Bug 160959 has been marked as a duplicate of this bug. ***

------- Comment #11 From Matt Drew 2007-04-05 02:08:13 0000 -------
base-system any word on this?  Thanks.

------- Comment #12 From SpanKY 2007-04-05 06:04:11 0000 -------
base-system does not care about pam ... there's a reason we have a sep
"pam-bugs" alias

if the pam buys want to fix something, they're free to change whatever pam
files they like

------- Comment #13 From Sune Kloppenborg Jeppesen 2007-05-02 12:11:10 0000 -------
pam-bugs please advise.

------- Comment #14 From Sune Kloppenborg Jeppesen 2007-06-03 15:29:31 0000 -------
pam-bugs please advise.

------- Comment #15 From Sune Kloppenborg Jeppesen 2007-06-10 08:08:21 0000 -------
pam-bugs please advise.

------- Comment #16 From Robin Johnson 2007-06-10 18:03:48 0000 -------
I thought we were sending this to base-system so that they could fix the shadow
and openssh packages?

------- Comment #17 From Sune Kloppenborg Jeppesen 2007-06-11 06:45:23 0000 -------
Thx Robin, my memory is limited:)

base-system please advise.

------- Comment #18 From SpanKY 2007-06-13 05:28:49 0000 -------
comment #12 still stands

------- Comment #19 From Sune Kloppenborg Jeppesen 2007-06-13 19:17:46 0000 -------
pam-bugs please fix any remaining files under /etc/pam.d/ that belongs to
base-system.

------- Comment #20 From Sune Kloppenborg Jeppesen 2007-07-01 02:11:09 0000 -------
pam-bugs please fix any remaining files under /etc/pam.d/ that belongs to
base-system so we can get this one closed.

------- Comment #21 From Jakub Moc (RETIRED) 2007-09-04 00:23:01 0000 -------
(In reply to comment #20)
> pam-bugs please fix any remaining files under /etc/pam.d/ that belongs to
> base-system so we can get this one closed.

AFAICT there's nothing left to be fixed here.


------- Comment #22 From Sune Kloppenborg Jeppesen 2007-09-09 19:16:44 0000 -------
Thx for the pointer Jakub. I'll close this one now (only mips is left on bug
#182301).

First Last Prev Next    No search results available      Search page      Enter new bug