FS#22745 - [exim] replace hardcoded UID by variable run-time-user-lookup

Attached to Project: Community Packages
Opened by Moritz Wilhelmy (wzff) - Friday, 04 February 2011, 04:01 GMT
Last edited by Angel Velasquez (angvp) - Saturday, 07 May 2011, 19:18 GMT
Task Type General Gripe
Category Packages
Status Closed
Assigned To Angel Velasquez (angvp)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The UID for exim is currently looked up during compile time and then hardcoded into the exim binary. This is ugly, because an exim user needs to exist on the system during compile time (it is created in build()), and the sysadmin can't use another UID to run exim during run-time.

According to src/EDITME, this can be circumvented by using EXIM_USER=ref:exim instead of EXIM_USER=exim in Local/Makefile, which would defer the lookup for the details of the exim user to compile time.

This would effectively eliminate the build-time dependency for sudo, the manual check for the user in the PKGBUILD, the addition of a temporary user, which is removed at the end (seriously?!) and the UID being hardcoded to 79.
This task depends upon

Closed by  Angel Velasquez (angvp)
Saturday, 07 May 2011, 19:18 GMT
Reason for closing:  Implemented
Additional comments about closing:  In 4.75-1 and superior
Comment by Moritz Wilhelmy (wzff) - Sunday, 06 March 2011, 14:22 GMT
"which would defer the lookup for the details of the exim user to compile time." <- I meant run time, of course.

Loading...