home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20409 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.4 KB  |  31 lines

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