FS#48924 - [dkms] Compiles modules as the root user

Attached to Project: Arch Linux
Opened by Earnestly (Earnest) - Wednesday, 13 April 2016, 12:15 GMT
Last edited by Sébastien Luttringer (seblu) - Saturday, 16 April 2016, 21:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Currently dkms in Arch Linux appears to compile the modules as the root user, this is particularly problematic with the push to use DKMS for kernels Arch supports.

I believe it is possible to support building as non-root with dkms but I'm unsure how. Ubuntu's example from https://wiki.kubuntu.org/Kernel/Dev/DKMSPackaging clearly shows the build command using su nobody -c "make ..." however that doesn't appear to be part of upstream DKMS: http://linux.dell.com/cgi-bin/cgit.cgi/dkms.git/tree/dkms#n632
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Saturday, 16 April 2016, 21:02 GMT
Reason for closing:  Won't implement
Comment by Sébastien Luttringer (seblu) - Saturday, 16 April 2016, 21:02 GMT
Yep, it would be nice to have non root build of modules. I suggest you to go upstream and implement it.

Until then, debian (and I guess ubuntu) does not build as nobody anymore, see:
- http://metadata.ftp-master.debian.org/changelogs//main/d/dkms/dkms_2.2.0.3-2_changelog
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554168

Loading...