Date: Sun, 24 Nov 1996 18:37:46 -0500 From: rhh@ct.picker.com (Randall Hopper) To: hackers@freebsd.org Subject: suidperl (v5.003) - Doesn't work, Any Tips? Message-ID: <Mutt.19961124183746.rhh@elmer.ct.picker.com>
next in thread | raw e-mail | index | archive | help
I have a really simple setuid script that used to work with the perl
5.001 port. I recently upgraded to 2.2-ALPHA and the 5.003 port, and it
stopped working:
#!/usr/local/bin/suidperl -w
$ENV{'PATH'} = '/bin:/usr/bin:/usr/sbin:/sbin';
exec( "/sbin/mount /zip" );
It just dumps out without any errors at all. The last few lines of ktrace
output are:
6816 ktrace CALL execve(0xefbfd0b8,0xefbfd518,0xefbfd520)
6816 ktrace NAMI "./mountzip"
6816 ktrace NAMI "/usr/local/bin/suidperl"
Thumbing the mail archives did reveal suidperl 4.x in /usr/bin, which works
fine. But I'm curious as to why suidperl 5.003 didn't work. Is this a
config problem on my system? Or is the port busted.
Thanks,
Randall
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19961124183746.rhh>
