O_NOFOLLOW

Andreas Jaeger aj@arthur.rhein-neckar.de
Sat Oct 24 02:29:00 GMT 1998


>>>>> Roland McGrath writes:

 > Does O_NOFOLLOW mean to not follow symlinks, and instead open the node for
 > the symlink itself?  The Hurd has had O_NOLINK to mean that for years.  I
 > wish Linux hackers could be bothered to look three feet for an existing
 > name to be compatible with.
It means to not follow symlinks when opening - but if a symlink is
tried it's not opened at all.

This was AFAIK implemented to guard against creating, e.g. forcing
root to create a file (core) that is symlinked to /etc/passwd.

Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de



More information about the Libc-hacker mailing list