Only check caller when deriving permissions.
Bug: 10547597 Change-Id: Ied909f9047c2567e93dde0f4658d6e4b9ff161ab
This commit is contained in:
parent
aa04e818a4
commit
39ff0ae0f6
1 changed files with 5 additions and 0 deletions
|
|
@ -488,6 +488,11 @@ static void derive_permissions_locked(struct fuse* fuse, struct node *parent,
|
|||
|
||||
/* Return if the calling UID holds sdcard_rw. */
|
||||
static bool get_caller_has_rw_locked(struct fuse* fuse, const struct fuse_in_header *hdr) {
|
||||
/* No additional permissions enforcement */
|
||||
if (fuse->derive == DERIVE_NONE) {
|
||||
return true;
|
||||
}
|
||||
|
||||
appid_t appid = multiuser_get_app_id(hdr->uid);
|
||||
return hashmapContainsKey(fuse->appid_with_rw, (void*) appid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue