suidperl

"Akinori MUSHA" <[email protected]>
Newsgroups gmane.os.freebsd.devel.audit
Organization Associated I. Daemons
Message-ID <[email protected]>
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 [email protected]
with "unsubscribe freebsd-audit" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.