On Fri, Aug 20, 2010 at 07:53:03PM +1000, Neil Brown wrote:
You are welcome to review the codepaths around pathname resolution for
assumptions of presense of ->follow_link() and friends; there _are_
subtle cases and dumping your "opened symlinks" in there is far from
a trivial change. Note that it affects more than just the starting
points of lookups; /proc/*/fd/* stuff is also involved.
BTW, speaking of NULL pathname, linkat() variant that allows creating a link
to an opened file is also a very dubious thing; at the very least, you get
non-trivial security implications, since now a process that got an opened
descriptor passed to it by somebody else may create hardlinks to the sucker.
--