[Dproxy-devel] Patch for setuid
Brought to you by:
mattpratt
From: Vesala T. <tv...@iw...> - 2000-05-27 21:29:37
|
This patch adds 2 new conf options: user_id and group_id - first one is username which is used to run dproxy process and second one is same for group. Ownership of cache file is changed to this pair before program calls setgid and setuid. Compiling with FreeBSD and Linux (RH 6.1) is working correctly, default values are root and root (because every system has own id for user/group 'nobody', and at struct userid and groupid are defined to uid_t and gid_t) I'll put autoconf scripts automatically to find user and group 'nobody'. Oh yeah, this patch is to dproxy-nexgen(!) And as I didn't hear anyone saying anything against autoconf scripts I'll start to hack them... Teemu =) |