HADOOP-6566. Add methods supporting, enforcing narrower permissions on local daemon directories. Contributed by Arun Murthy and Luke Lu