'; }
Bug 80069 - lang/perl5.8 doesn't make a valid symlink to suidperl
Summary: lang/perl5.8 doesn't make a valid symlink to suidperl
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Anton Berezin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-18 13:50 UTC by Sergey N. Voronkov
Modified: 2005-09-12 12:35 UTC (History)
0 users

See Also:


Attachments
file.diff (1.36 KB, patch)
2005-04-18 13:50 UTC, Sergey N. Voronkov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey N. Voronkov 2005-04-18 13:50:01 UTC
	use.perl doesn't make a valid symlink to suidperl in /usr/bin.

	According to perl584delta:
	<CITE>
       suidperl less insecure

       Paul Szabo has analysed and patched "suidperl" to remove existing known
       insecurities. Currently there are no known holes in "suidperl", but
       previous experience shows that we cannot be confident that these were
       the last. You may no longer invoke the set uid perl directly, so to
       preserve backwards compatibility with scripts that invoke
       #!/usr/bin/suidperl the only set uid binary is now "sperl5.8."n
       ("sperl5.8.4" for this release). "suidperl" is installed as a hard link
       to "perl"; both "suidperl" and "perl" will invoke "sperl5.8.4" automat-
       ically the set uid binary, so this change should be completely trans-
       parent.
	</CITE>

	It is much more accurate to:

	ln -sf /usr/local/sbin/suidperl /usr/bin/suidperl

How-To-Repeat: 	make ENABLE_SUIDPERL=yes install

	Try to run anything suidperl...
Comment 1 Anton Berezin freebsd_committerfreebsd_triage 2005-04-18 13:52:52 UTC
Responsible Changed
From-To: freebsd-ports-bugs->tobez

Grab.
Comment 2 Anton Berezin freebsd_committerfreebsd_triage 2005-06-23 08:47:13 UTC
State Changed
From-To: open->feedback

Would not it be easier to move "suidperl" from special_link_list to 
link_list to achieve the same effect?
Comment 3 Anton Berezin freebsd_committerfreebsd_triage 2005-09-12 12:33:31 UTC
State Changed
From-To: feedback->closed

A different fix to the same problem was made on 24-Jun-05, 
files/use.perl revision 1.11. 

Thanks!