projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cd490e
)
ANDROID: sdcardfs: fix external storage exporting incorrect uid
author
alvin_liang
<alvin_liang@htc.com>
Mon, 19 Sep 2016 08:59:12 +0000
(16:59 +0800)
committer
Daniel Rosenberg
<drosen@google.com>
Tue, 30 Jan 2018 03:40:01 +0000
(19:40 -0800)
Symptom: App cannot write into per-app folder
Root Cause: sdcardfs exports incorrect uid
Solution: fix uid
Project: All
Note:
Test done by RD: passed
Change-Id: Iff64f6f40ba4c679f07f4426d3db6e6d0db7e3ca
fs/sdcardfs/main.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/sdcardfs/main.c
b/fs/sdcardfs/main.c
index 6d526bf3d956f3e1a94015e8ba6acff6c4a4d22e..2decea3d1e3e96a34c968b1e4cfe7fbbfd19ee19 100644
(file)
--- a/
fs/sdcardfs/main.c
+++ b/
fs/sdcardfs/main.c
@@
-274,7
+274,7
@@
static int sdcardfs_read_super(struct super_block *sb, const char *dev_name,
sb_info->options.fs_low_uid,
sb_info->options.fs_low_gid, 00755);*/
} else {
- setup_derived_state(
sb->s_root->d_inode, PERM_ROOT, sb_info->options.fs_low_uid, AID_ROOT, false, sb->s_root->d_inode
);
+ setup_derived_state(
d_inode(sb->s_root), PERM_ROOT, sb_info->options.fs_user_id, AID_ROOT, false, d_inode(sb->s_root)
);
snprintf(sb_info->obbpath_s, PATH_MAX, "%s/Android/obb", dev_name);
}
fix_derived_permission(sb->s_root->d_inode);