HIVE-8864 - Fix permission inheritance with HDFS encryption (Szehon via Brock)

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/HIVE-8065@1645078 13f79535-47bb-0310-9956-ffa450edef68