ANDROID: Sdcardfs: Move gid derivation under flag

This moves the code to adjust the gid/uid of lower filesystem
files under the mount flag derive_gid.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Tracked-On: https://jira01.devtools.intel.com/browse/AW-7537
Change-Id: I44eaad4ef67c7fcfda3b6ea3502afab94442610c
Bug: 63245673
Reviewed-on: https://android.intel.com/608576
Reviewed-by: Dubray, SimonX <simonx.dubray@intel.com>
Tested-by: Dubray, SimonX <simonx.dubray@intel.com>
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
5 files changed