From: bodea Date: Thu, 27 Apr 2006 14:37:27 +0000 (+0000) Subject: remove non-working setuid option X-Git-Tag: release_2_1_19~11 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/241d15a178ffcf22ca05482f1717981515753bab?ds=sidebyside;hp=5e631c6978946b8333bcd49b79ae5d009ba93413 remove non-working setuid option --- diff --git a/Changes b/Changes index 3c7c124..c920f8c 100644 --- a/Changes +++ b/Changes @@ -1,7 +1,8 @@ -* Thu Apr 27 2006 Brendan O'Dea 2.2.0 +* Fri Apr 28 2006 Brendan O'Dea 2.2.0 - Only poll clifd if successfully bound. - Add "Practical VPNs" document from Liran Tal as Docs/vpn . - Add Multilink support from Khaled Al Hamwi. +- Remove non-working setuid option. * Tue Apr 18 2006 Brendan O'Dea 2.1.18 - Don't shutdown on TerminateReq, wait for CDN. diff --git a/Docs/startup-config.5 b/Docs/startup-config.5 index 865d257..174a253 100644 --- a/Docs/startup-config.5 +++ b/Docs/startup-config.5 @@ -2,7 +2,7 @@ .de Id .ds Dt \\$4 \\$5 .. -.Id $Id: startup-config.5,v 1.16 2006/04/27 09:53:50 bodea Exp $ +.Id $Id: startup-config.5,v 1.17 2006/04/27 14:38:14 bodea Exp $ .TH STARTUP-CONFIG 5 "\*(Dt" L2TPNS "File Formats and Conventions" .SH NAME startup\-config \- configuration file for l2tpns @@ -152,10 +152,6 @@ session requires two buckets (in and out). If set to a directory, then every 5 minutes the current usage for every connected use will be dumped to a file in this directory. .TP -.B setuid -After starting up and binding the interface, change UID to this. This -doesn't work properly. -.TP .B dump_speed If set to true, then the current bandwidth utilization will be logged every second. Even if this is disabled, you can see this information diff --git a/etc/startup-config.default b/etc/startup-config.default index 4d77482..c448de2 100644 --- a/etc/startup-config.default +++ b/etc/startup-config.default @@ -62,9 +62,6 @@ set accounting_dir "/var/run/l2tpns/acct" # Number of buckets to allocate for throttling #set throttle_buckets 3000 -# If set to anything other than 0, setuid when initialised. -#set setuid 0 - # If set to true, dump current speed to stderr every second #set dump_speed no diff --git a/l2tpns.c b/l2tpns.c index bd044eb..85caae3 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -4,7 +4,7 @@ // Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced // vim: sw=8 ts=8 -char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.163 2006/04/27 09:53:49 bodea Exp $"; +char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.164 2006/04/27 14:37:27 bodea Exp $"; #include #include @@ -134,7 +134,6 @@ config_descriptt config_values[] = { CONFIG("throttle_speed", rl_rate, UNSIGNED_LONG), CONFIG("throttle_buckets", num_tbfs, INT), CONFIG("accounting_dir", accounting_dir, STRING), - CONFIG("setuid", target_uid, INT), CONFIG("dump_speed", dump_speed, BOOL), CONFIG("multi_read_count", multi_read_count, INT), CONFIG("scheduler_fifo", scheduler_fifo, BOOL), @@ -4472,10 +4471,6 @@ int main(int argc, char *argv[]) LOG(0, 0, 0, "Can't lock pages: %s\n", strerror(errno)); } - // Drop privileges here - if (config->target_uid > 0 && geteuid() == 0) - setuid(config->target_uid); - mainloop(); /* remove plugins (so cleanup code gets run) */ diff --git a/l2tpns.h b/l2tpns.h index e463b1e..3ad2cf5 100644 --- a/l2tpns.h +++ b/l2tpns.h @@ -1,5 +1,5 @@ // L2TPNS Global Stuff -// $Id: l2tpns.h,v 1.115 2006/04/27 09:53:50 bodea Exp $ +// $Id: l2tpns.h,v 1.116 2006/04/27 14:37:28 bodea Exp $ #ifndef __L2TPNS_H__ #define __L2TPNS_H__ @@ -654,7 +654,6 @@ typedef struct in_addr_t peer_address; int send_garp; // Set to true to garp for vip address on startup - int target_uid; int dump_speed; char plugins[64][MAXPLUGINS]; char old_plugins[64][MAXPLUGINS]; diff --git a/l2tpns.spec b/l2tpns.spec index 4ed564c..c46d3ae 100644 --- a/l2tpns.spec +++ b/l2tpns.spec @@ -43,5 +43,5 @@ rm -rf %{buildroot} %attr(644,root,root) /usr/share/man/man[58]/* %changelog -* Thu Apr 27 2006 Brendan O'Dea 2.2.0-1 +* Fri Apr 28 2006 Brendan O'Dea 2.2.0-1 - 2.2.0 release, see /usr/share/doc/l2tpns-2.2.0/Changes