Summary: | udev + pam = segmentation fault | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Owen Gunden <ogunden> |
Component: | [OLD] Core system | Assignee: | PAM Gentoo Team (OBSOLETE) <pam-bugs+disabled> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | duke, gregkh, greg_g |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Owen Gunden
2004-02-29 13:51:31 UTC
More hints: I found this in /etc/init.d/bootmisc: # Reset pam_console permissions [ -x /sbin/pam_console_apply -a ! -c /dev/.devfsd ] && \ /sbin/pam_console_apply -r It looks like it means "if you're using devfs, do NOT run the pam_console_apply script." Maybe the script shouldn't be run for udev either? [ -x /sbin/pam_console_apply -a ! -c /dev/.devfsd ] && \ /sbin/pam_console_apply -r means, if there is pam_console_apply and excutable, and if there is no /dev/.devfsd or it's not character, then run /sbin/pam_console_apply -r. so a user who use devfs have /dev/.devfsd and shoun't execute /sbin/pam_console_apply -r. and other user should execute it. So, why if you are using udev would you want to run "/sbin/pam_console_apply -r"? What does it do that devfs takes care of on its own? I don't know. Like I said I don't have expertise with PAM. However, the startup and shutdown scripts both try to execute pam_console_apply -r. Shouldn't a segfault be reported upstream, too? Have a look at the pam_console_apply manual. It looks to me as though pam_console_apply is trying to reset permissions on shutdown, but maybe some of the devices in /etc/security/console.perms don't exist, and a bug prevents it from executing properly. Seems like a pam bug to me. Also, as far as I know, udev has its own way of handling device permissions on bootup/shutdown, so if you're not using devfs, using pam_console_apply isn't necessary. > Seems like a pam bug to me. Agreed. Does anyone know where to report this upstream? I tried pam-list to no avail, and the most appropriate bugzilla I can find is redhat's which looks very fedora-specific. > Also, as far as I know, udev has its own way of handling device permissions on > bootup/shutdown, so if you're not using devfs, using pam_console_apply isn't > necessary. Yeah, I commented out the lines that were calling it on bootup/shutdown. Maybe there should be a test for udev, similar to the test for devfs, that disables calling pam_console_apply for udev systems? Thanks for your insights! already fixed in baselayout-1.11.3+ ... take this upstream if you care to ;) *** This bug has been marked as a duplicate of 50315 *** The segfault is caused by a Gentoo patch: pam-0.77-patches/gentoo-patches/pam-0.77-console-reset.patch do not report upstream! |