Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 864579 - Newer gentoo kernel trees, e.g., 5.18.14, have insufficient permissions for nvidia drivers
Summary: Newer gentoo kernel trees, e.g., 5.18.14, have insufficient permissions for n...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-09 15:53 UTC by Jan Hrabe
Modified: 2022-08-10 03:32 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 Jan Hrabe 2022-08-09 15:53:38 UTC
When I try to build nvidia drivers for newer kernels (e.g., 5.18.X), the build fails because some files in the kernel tree have only read permissions for root.  To build the drivers (emerge @module-rebuild), one has to first chmod -R +rX the content of the kernel tree directory (/usr/src/linux/).  This did not happen with the stable kernels but I need the 5.18 series for its vastly improved Intel Alder Lake processor scheduler.

Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2022-08-09 16:08:03 UTC
It sounds like you started using a different umask as root (like umask 0027 rather than 0022, can confirm by running `umask`) and when you build your kernel it created built files without world read permissions.
Comment 2 Jan Hrabe 2022-08-09 17:49:23 UTC
Thanks for the hint.  Although I do not set the mask for root, the user from which I "su -" does.  The surprise is that the su -l command keeps the user's mask.  I don't know if this has always been the case because I have never seen this problem while using the same configuration for the user and the root for years.  If this mask inheritance is considered the correct behavior, then the problem can be closed.