Re: fsync on large files

Brandon S. Allbery KF8NH (allbery@kf8nh.apk.net)
Tue, 23 Feb 1999 07:06:48 -0500


In message <19990222225331.03522@execpc.com>, Mitchell Blank Jr writes:
+-----
| Wayne Schlitt wrote:
| > You could royally screw up your file system with the ln command as
| > root, I don't even recall if ln checked for directories or if you had
| > to add a flag to force it.
|
| I don't think that's true... ln(1) doesn't seem to touch directories, nor
| does there seem to be an obvious flag (nor is one documented in the man
| page). UID 0 could call link(2) on a directory, though:
+--->8

AT&T System III shipped with /etc/link and /etc/unlink, "raw" versions of
ln and rm that didn't do the normal sanity checking. Root could use them to
perform otherwise "illegal" operations.

-- 
brandon s. allbery	[os/2][linux][solaris][japh]	 allbery@kf8nh.apk.net
system administrator	     [WAY too many hats]	   allbery@ece.cmu.edu
carnegie mellon / electrical and computer engineering			 KF8NH
     We are Linux. Resistance is an indication that you missed the point.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/