Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385663 - gnome-base/gdm-3.2.0 fails to work with x11-drivers/nvidia-drivers due to bad permissions in the gdm user
Summary: gnome-base/gdm-3.2.0 fails to work with x11-drivers/nvidia-drivers due to bad...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gnome3.2
  Show dependency tree
 
Reported: 2011-10-04 21:08 UTC by Damien Thébault
Modified: 2012-03-23 15:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damien Thébault 2011-10-04 21:08:19 UTC
I installed gnome 3.2 from the gnome overlay last week-end.
Then I upgraded to nvidia-drivers-285.05.09 today to solve an nvidia bug (Bug #375615).

But then gdm wouldn't start anymore, I looked at /var/log/gdm/:0-greeter.log and found this line multiple times:
> NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
/dev/nvidiactl is 660 root:video, so I added the "gdm" user to the "video" group.

Then gdm worked again.

I mentionned this problem and it looks like the ebuild in the sabayon overlay has a fix for that, adding the "gdm" user to both the "gdm" and the "video" groups.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-10-04 22:24:36 UTC
Fixed in gdm-3.2.0-r1, thanks for reporting.

> commit fba0b3686a8ffa5207ca88b0b9f282c884f76c05
> Author: Alexandre Rostovtsev <tetromino@gmail.com>
> Date:   Tue Oct 4 14:38:36 2011 -0400
> 
> gnome-base/gdm: ensure that gdm user is in video group (#385663)
>   
> This is required for compatibility with new nvidia-drivers versions, and
> is good policy in general. If the gdm user is not in the video group,
> with nvidia-drivers-285.05.09 gdm will simply crash at startup with a
> generic fail whale dialog.
> 
> Fixes bug #385663.
> 
> XXX: check for portability.
Comment 2 Mart Raudsepp gentoo-dev 2011-10-04 23:20:32 UTC
I'm pretty sure gdm-3.0 would be affected as well. I think I'd prefer we keep this bug open until the necessary fixes trickle down to portage tree as well. Also considering the XXX FIXME comments in the fixes applied to overlay only.

Also, not at all sure this is the right approach to take to all this
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-10-04 23:57:56 UTC
(In reply to comment #2)
> I'm pretty sure gdm-3.0 would be affected as well.

No, only login managers that use opengl are affected. That means gdm-3.2.0 and higher.

> Also considering the XXX FIXME comments in the fixes applied to overlay only.

Ideally, someone who knows something about unix portability needs to write a function for eutils.eclass that modifies the set of groups a user belongs to. Then the gdm ebuild can be modified to use that function.
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-10-05 13:18:23 UTC
Adding a user to the video group can have security implications.
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-03-23 15:51:04 UTC
The fix has been in portage for a long time, and appears to have resolved the issue. Although, as comment #3 says, if someone can and wants to write a portable function for adding a user to a group and package it in an eclass, I would certainly love to switch gdm to use that.