This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: O_NOFOLLOW


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]