Date: Mon, 13 Mar 1995 23:14:07 +0100 (MET) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@FreeBSD.org (FreeBSD hackers) Subject: permissions for route(8) Message-ID: <199503132214.XAA01049@uriah.heep.sax.de>
next in thread | raw e-mail | index | archive | help
Wondering why my SLIP-dial script didn't work (a setuid perl script), i found the following in route(8): pid = getpid(); uid = getuid(); ... if (uid) { errno = EACCES; quit("must be root to alter routing table"); } Shouldn't that be ``uid = geteuid()'' instead? (Okay, my script could use a setuid, but there's no point in evaluating the real UID then.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503132214.XAA01049>