From owner-freebsd-hackers Sat Jan 7 17:13:47 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id RAA02156 for hackers-outgoing; Sat, 7 Jan 1995 17:13:47 -0800 Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id RAA02150 for ; Sat, 7 Jan 1995 17:13:45 -0800 Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.8/jtpda-5.0) with SMTP id CAA14250 for ; Sun, 8 Jan 1995 02:14:25 +0100 Received: by blaise.ibp.fr (4.1/SMI-4.1) id AA27375; Sun, 8 Jan 95 02:14:34 +0100 Received: (from roberto@localhost) by keltia.frmug.fr.net (8.6.9/keltia-uucp-1.21) id CAA11102 for freebsd-hackers@FreeBSD.ORG; Sun, 8 Jan 1995 02:09:21 +0100 From: Ollivier Robert Message-Id: <199501080109.CAA11102@keltia.frmug.fr.net> Subject: Perl setuid scripts don't work (same reason as in 1.1.5.1) To: freebsd-hackers@FreeBSD.ORG (FreeBSD Hackers' list) Date: Sun, 8 Jan 1995 02:09:19 +0100 (MET) Reply-To: roberto@blaise.ibp.fr (Ollivier Robert) X-Operating-System: FreeBSD 2.1.0-Development X-Ctm-Level: 261 X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1630 Sender: hackers-owner@FreeBSD.ORG Precedence: bulk I think someone has already talk about it but I just got bitten again : perl setuid scripts don't work in 2.1-current for the same reason they were not working in 1.1.5.1. Perl 5 has the same "problem" of course. We have almost POSIX saved uids but we must undefine the following symbols in order to get setuid perl scripts : Someone _please_ commit this. Index: config.h =================================================================== RCS file: /spare/FreeBSD-current/src/gnu/usr.bin/perl/perl/config.h,v retrieving revision 1.5 diff -u -r1.5 config.h --- 1.5 1994/11/03 23:50:43 +++ config.h 1995/01/07 22:23:56 @@ -386,7 +386,7 @@ * available to change the real, effective and saved gid of the current * program. */ -#define HAS_SETREGID /**/ +#undef HAS_SETREGID /**/ /* HAS_SETREUID * This symbol, if defined, indicates that the setreuid routine is @@ -397,19 +397,19 @@ * available to change the real, effective and saved uid of the current * program. */ -#define HAS_SETREUID /**/ +#undef HAS_SETREUID /**/ /* HAS_SETRGID * This symbol, if defined, indicates that the setrgid routine is available * to change the real gid of the current program. */ -#define HAS_SETRGID /**/ +#undef HAS_SETRGID /**/ /* HAS_SETRUID * This symbol, if defined, indicates that the setruid routine is available * to change the real uid of the current program. */ -#define HAS_SETRUID /**/ +#undef HAS_SETRUID /**/ /* HAS_SOCKET -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.frmug.fr.net FreeBSD keltia 2.1.0-Development #2: Sat Jan 7 00:55:25 MET 1995