sdcardfs: override umask on mkdir and create
authorDaniel Rosenberg <drosen@google.com>
Wed, 13 Apr 2016 23:38:34 +0000 (16:38 -0700)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:16 +0000 (18:03 +0200)
commit0685edcfd4b28906880c95f1bfb3337905f0dc0c
tree0f755717d57873ef556c7c229509c45adff3ed6f
parent80d18bd6e2a362f4042ce672cc531acf8054793e
sdcardfs: override umask on mkdir and create

The mode on files created on the lower fs should
not be affected by the umask of the calling
task's fs_struct. Instead, we create a copy
and modify it as needed. This also lets us avoid
the string shenanigans around .nomedia files.

Bug: 27992761
Change-Id: Ia3a6e56c24c6e19b3b01c1827e46403bb71c2f4c
Signed-off-by: Daniel Rosenberg <drosen@google.com>
fs/fs_struct.c
fs/sdcardfs/inode.c