[systemd-bugs] [Bug 55163] Executing within home directory of the given user

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon May 26 02:13:15 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=55163

--- Comment #5 from j.witteveen at gmail.com ---
One possible fix would be to change src/core/unit.c:unit_patch_contexts,
replacing

if (u->manager->running_as == SYSTEMD_USER && !ec->working_directory) {

with something along the lines of

if (/* uid of process-to-run != 0 */ && !ec->working_directory) {

and also modify src/shared/util.c:get_home_dir, where we add the uid as a
parameter.

Would this be acceptable? If so, I will try to come up with a patch.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140526/29239125/attachment.html>


More information about the systemd-bugs mailing list