summaryrefslogtreecommitdiff
path: root/fs/fs_struct.c
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2016-04-13 16:38:34 -0700
committerAmit Pundir <amit.pundir@linaro.org>2017-02-03 14:16:53 +0530
commit7d94377916e6de601084c3b8e2c50a4563b600d7 (patch)
tree6ade6b7baaf1152b7e8935c7ed058b54cce5d42f /fs/fs_struct.c
parentb4bbeeb816c06fd59dea2ea82c7b5650eb185e65 (diff)
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>
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 7dca743b2ce1..005dcb401369 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)
{