From 690bce8d819ea365385496ec36e2dd01e04f500f Mon Sep 17 00:00:00 2001 From: Ryo Hashimoto Date: Mon, 13 Nov 2017 18:29:20 +0900 Subject: [PATCH] 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 --- sdcard/fuse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }