From zgabor@code.hu  Wed Jun 12 05:01:54 1996
Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id FAA27821
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 12 Jun 1996 05:01:47 -0700 (PDT)
Received: by mail.EUnet.hu, id OAA10066; Wed, 12 Jun 1996 14:01:39 +0200
Received: from zg.CoDe.hu by CoDe.CoDe.hu (NAA02831); Wed, 12 Jun 1996 13:54:08 GMT
Received: (from zgabor@localhost) by zg.CoDe.hu (8.6.12/8.6.12) id OAA00659; Wed, 12 Jun 1996 14:08:49 +0200
Message-Id: <199606121208.OAA00659@zg.CoDe.hu>
Date: Wed, 12 Jun 1996 14:08:49 +0200
From: Zahemszky Gabor <zgabor@code.hu>
Reply-To: zgabor@code.hu
To: FreeBSD-gnats-submit@freebsd.org
Subject: link(8)/unlink(8)
X-Send-Pr-Version: 3.2

>Number:         1313
>Category:       bin
>Synopsis:       link(8)/unlink(8)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 12 05:10:01 PDT 1996
>Closed-Date:    Thu Jun 13 09:21:07 MET DST 1996
>Last-Modified:  Tue Nov 27 19:32:05 PST 2001
>Originator:     Zahemszky Gabor
>Release:        FreeBSD 2.1.0-RELEASE i386
>Organization:
>Environment:

	On 2.1R, there's missing the (/etc) /sbin/link and unlink commands.
	These command are the most simplified version of the ln/rm commands,
	(eg, the ln command denies making a hard link to a directory, but
	the link command enables it - for root, of course; the rm/rmdir
	doesn't delete a hard linked directory, but unlink does it) - they
	are only interface commands to the system call.  These command are
	mostly on AT&T Unices.

>Description:

	

>How-To-Repeat:

	

>Fix:
	
	

>Release-Note:
>Audit-Trail:

From: Ollivier Robert <roberto@keltia.freenix.fr>
To: zgabor@code.hu
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/1313: link(8)/unlink(8)
Date: Thu, 13 Jun 1996 00:25:05 +0200 (MET DST)

 It seems that Zahemszky Gabor said:
 > >Originator:     Zahemszky Gabor
 > >Organization:
 > >Release:        FreeBSD 2.1.0-RELEASE i386
 > >Environment:
 > 
 > 	On 2.1R, there's missing the (/etc) /sbin/link and unlink commands.
 > 	These command are the most simplified version of the ln/rm commands,
 > 	(eg, the ln command denies making a hard link to a directory, but
 > 	the link command enables it - for root, of course; the rm/rmdir
 
 Hard-linking  directories is a   no-no and  should  not  be allowed.   This
 "misfeature" has been fixed in CURRENT:
 
 peter       96/05/24 09:19:25
 
   Modified:    sys/kern  vfs_syscalls.c
   Log:
   Dont allow directories to be link()ed or unlink()ed, even for root
   (returns EPERM always, the errno is specified by POSIX).
   
   If you really have a desperate need to link or unlink a directory, you
   can use fsdb. :-)
   
   This should stop any chance of ftpd, rdist, "rm -rf", etc from
   bugging out and damaging the filesystem structure or loosing races
   with malicious users.
   
 -- 
 Ollivier ROBERT    -=- The daemon is FREE! -=-    roberto@keltia.freenix.fr
 FreeBSD keltia.freenix.fr 2.2-CURRENT #10: Tue Jun 11 13:36:57 MET DST 1996
 
 
 
 
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Thu Jun 13 09:21:07 MET DST 1996 
State-Changed-Why:  
These utilities are no longer necessary since we now forbid 
hard linking (and unlinking) of directories again. 

>Unformatted:
 
