diff options
author | Ryo Hashimoto <hashimoto@google.com> | 2017-11-13 18:29:20 +0900 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2018-01-12 13:09:54 -0700 |
commit | d2d8eabf679a0bd65c4564bf2ce801b094528d48 (patch) | |
tree | 6f5a08101e598812d812397815d0160b45acad8f /sdcard | |
parent | ceecbfc40ef132d71605862440e82ded22207397 (diff) | |
download | core-d2d8eabf679a0bd65c4564bf2ce801b094528d48.tar.gz |
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
Diffstat (limited to 'sdcard')
-rw-r--r-- | sdcard/fuse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdcard/fuse.cpp b/sdcard/fuse.cpp index 95559d7ff..10d0f0418 100644 --- a/sdcard/fuse.cpp +++ b/sdcard/fuse.cpp @@ -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; } |