Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 1996 22:50:06 -0700 (PDT)
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        freebsd-bugs
Subject:   Re: bin/1313: link(8)/unlink(8)
Message-ID:  <199606130550.WAA20364@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/1313; it has been noted by GNATS.

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
 
 
 
 
 
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606130550.WAA20364>