On Thu, Apr 8, 2010 at 10:56 PM, Johannes Hofmann <johannes.hofmann at gmx.de> wrote: > However it would probabely better - though more invasive to add > O_DIRECTORY to native open(2) and simply pass the flag. As far as I can tell only opendir should be using the O_DIRECTORY flag in open.