OSDN Git Service

ANDROID: sdcardfs: override umask on mkdir and create
authorDaniel Rosenberg <drosen@google.com>
Wed, 13 Apr 2016 23:38:34 +0000 (16:38 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commitaad628e7f9c93f5afcb1d3b6ccf603702c22115f
tree9aa19a889d9a1925be2719677cc65541c48e3173
parentaa6b07a700dcb1e3505b30f03a2cf93398bf777c
ANDROID: 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