Add for support to set uid, gid, fmask, dmask

Change-Id: I21fe8eab1a9110c4c490dc1a26bdd953dfe0ab09