sdcard: Use AID_ROOT constant

To be consistent with the other parts of the code,
and to make it easy to use a differnt value when running in a container.

Bug: 69142822
Test: build
Change-Id: I9b2c7744e3867bb15511dd4ddd7bce281d758a7b
This commit is contained in:
Ryo Hashimoto 2017-11-13 18:29:20 +09:00 committed by Jeff Sharkey
parent ceecbfc40e
commit d2d8eabf67
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ static bool check_caller_access_to_name(struct fuse* fuse,
/* Root always has access; access for any other UIDs should always
* be controlled through packages.list. */
if (hdr->uid == 0) {
if (hdr->uid == AID_ROOT) {
return true;
}