After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 359831 - [patch] gdm crashes when home directory is not world-executable
[patch] gdm crashes when home directory is not world-executable
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.14.x
Other All
: Normal critical
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2006-10-05 09:21 UTC by Amnon Aaronsohn
Modified: 2006-10-06 00:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix the problem (466 bytes, patch)
2006-10-05 09:28 UTC, Amnon Aaronsohn
none Details | Review

Description Amnon Aaronsohn 2006-10-05 09:21:35 UTC
Please describe the problem:
In our setup the home directories are on NFS with root squashing. When a user whose home directory is not world-executable tries to login, gdm sometimes crashes with a segfault.

Steps to reproduce:
1. chmod o-x ~
2. Try to login


Actual results:
About 1 in 2 times, gdm crashes, the user's xsession isn't started and the login screen is re-displayed. The log says the daemon received signal 11.

Expected results:


Does this happen every time?


Other information:
This doesn't happen with the default configuration (I think setting NeverPlaceCookiesOnNFS=false triggers the bug).

The program crashes in gdm_auth_user_add() due to a reference to a freed pointer. The attached patch fixes the problem.
Comment 1 Amnon Aaronsohn 2006-10-05 09:28:11 UTC
Created attachment 74037 [details] [review]
patch to fix the problem
Comment 2 Brian Cameron 2006-10-06 00:56:58 UTC
Thanks, good catch.  Fixed in 2.14, 2.16 and CVS head branches.