summaryrefslogtreecommitdiff
path: root/sdcard
diff options
context:
space:
mode:
authorRyo Hashimoto <hashimoto@google.com>2017-11-13 18:29:20 +0900
committerJeff Sharkey <jsharkey@android.com>2018-01-12 13:09:54 -0700
commitd2d8eabf679a0bd65c4564bf2ce801b094528d48 (patch)
tree6f5a08101e598812d812397815d0160b45acad8f /sdcard
parentceecbfc40ef132d71605862440e82ded22207397 (diff)
downloadcore-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.cpp2
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;
}