aboutsummaryrefslogtreecommitdiff
path: root/fs/fs_struct.c
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2016-04-13 16:38:34 -0700
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:56 +0200
commitc5e752dc5034a2f0c07696fc42c88da677ab88ba (patch)
tree2bd77fc30efa5863819eaf4556d548bfa9a3bded /fs/fs_struct.c
parenteb3e4296eb75ea8d2ebca84eeda2a900bda735c6 (diff)
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>
Diffstat (limited to 'fs/fs_struct.c')
-rw-r--r--fs/fs_struct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fs_struct.c b/fs/fs_struct.c
index d8ac61d0c..5a1bb8242 100644
--- a/fs/fs_struct.c
+++ b/fs/fs_struct.c
@@ -127,6 +127,7 @@ struct fs_struct *copy_fs_struct(struct fs_struct *old)
}
return fs;
}
+EXPORT_SYMBOL_GPL(copy_fs_struct);
int unshare_fs_struct(void)
{