Date: Thu, 04 Jul 2002 19:15:58 +0900 From: "Akinori MUSHA" <knu@iDaemons.org> To: audit@FreeBSD.org Subject: suidperl Message-ID: <86sn2zpzmp.wl@daemon.musha.org>
next in thread | raw e-mail | index | archive | help
Here's a patch that fixes suidperl and ENABLE_SUIDPERL. Currently you
cannot easily enable suidperl even by hand, because perl, perl5,
perl5.6.1 and suidperl are hardlinks to each other. (`chmod 4555
/usr/bin/suidperl' also affects /usr/bin/perl)
Index: src/usr.bin/Makefile
===================================================================
RCS file: /home/ncvs/src/usr.bin/Makefile,v
retrieving revision 1.213
diff -u -r1.213 Makefile
--- src/usr.bin/Makefile 3 Jul 2002 19:23:50 -0000 1.213
+++ src/usr.bin/Makefile 4 Jul 2002 10:14:19 -0000
@@ -146,6 +146,7 @@
split \
stat \
su \
+ suidperl \
symorder \
systat \
tabs \
Index: src/usr.bin/perl/Makefile
===================================================================
RCS file: /home/ncvs/src/usr.bin/perl/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- src/usr.bin/perl/Makefile 7 Jun 2002 18:55:42 -0000 1.5
+++ src/usr.bin/perl/Makefile 4 Jul 2002 09:20:54 -0000
@@ -4,7 +4,6 @@
NOMAN=
WARNS?= 6
LINKS= ${BINDIR}/perl ${BINDIR}/perl5 \
- ${BINDIR}/perl ${BINDIR}/perl5.6.1 \
- ${BINDIR}/perl ${BINDIR}/suidperl
+ ${BINDIR}/perl ${BINDIR}/perl5.6.1
.include <bsd.prog.mk>
Index: src/usr.bin/suidperl/Makefile
===================================================================
RCS file: src/usr.bin/suidperl/Makefile
diff -N src/usr.bin/suidperl/Makefile
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/usr.bin/suidperl/Makefile 4 Jul 2002 10:08:12 -0000
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../perl
+
+PROG= suidperl
+SRCS= perl.c
+NOMAN=
+WARNS?= 6
+
+BINOWN= root
+.if defined(ENABLE_SUIDPERL)
+BINMODE=4555
+.endif
+
+.include <bsd.prog.mk>
--
/
/__ __ Akinori.org / MUSHA.org
/ ) ) ) ) / FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp
"When I leave I don't know what I'm hoping to find
When I leave I don't know what I'm leaving behind.."
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86sn2zpzmp.wl>
