home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!torvalds
- From: torvalds@klaava.Helsinki.FI (Linus Torvalds)
- Subject: Re: PATCH: (0.98.6) allow root to link/unlink directories
- Message-ID: <1992Dec14.224916.21859@klaava.Helsinki.FI>
- Keywords: kernel,patch,0.98.6,fs,link,unlink,root,directory,namei,standard,fix
- Organization: University of Helsinki
- References: <1992Dec14.213538.15934@tc.cornell.edu>
- Date: Mon, 14 Dec 1992 22:49:16 GMT
- Lines: 19
-
- In article <1992Dec14.213538.15934@tc.cornell.edu> Frank T Lofaro <fl0p+@andrew.cmu.edu> writes:
- > I noticed that rm -d and ln -d don't work under linux (I tested under
- >0.98.6), even for root (they say Operation not permitted, unlink/link
- >gives EPERM as a return value). [ deleted ]
-
- I just wanted to say that while the patch may work (I didn't look at it
- closer, but it should be simple enough), this is a feature that the
- current kernel forbids for a very good reason: linking/unlinking
- directories is generally a very bad idea, even if it's restricted to
- root. It's available in some unixes due to the way they implement
- moving of directories, but it's unsafe. All versions of linux have
- explicitly checked for directories, and not allowed links/unlinks to
- them.
-
- Is there anybody out there that actually needs this? I'm just warning
- you that this patch won't get into the standard kernel unless somebody
- can come up with a truly good reason for it (I doubt there is any).
-
- Linus
-