https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8031

--- Comment #20 from Sidney Markowitz <sid...@sidney.com> ---
Giovanni, the error message you showed and what you said about running spamd as
root and it then doing a setuid to a non-root uid implies to me that you start
out as root in /root/rpmbuild/BUILD/Mail-SpamAssassin-4.0.0 which can only be
accessed by root, and you run the make test as root. When you do that spamd is
started as root, and it later does a setuid nobody.

However I added the following diagnostic line to Util.pm before the require
that is failing

dbg("util: DEBUG require hostname now running as: ruid=$< euid=$> rgid=$(
egid=$)");

When I use the same directories as above and su to a root shell, cd to the
directory and run the make test, I don't get an error. If I edit the
sa_check_spamd.t to change an ok pattern to force it to fail so the spamd error
log file is not deleted, it shows that the dbg line I added says that it was
still running as root when the require is run, and the setuid nobody shows up
in the log later.

Are you running the test differently? Could you add that dbg line and run the
test and attach the spamd.err.0.timestamped file from the log directory?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to