/system/core/libcutils/ |
D | fs_config.c | 67 { 00500, AID_ROOT, AID_ROOT, 0, "config" }, 71 { 00771, AID_ROOT, AID_ROOT, 0, "data/dalvik-cache" }, 80 { 00750, AID_ROOT, AID_SHELL, 0, "data/nativetest" }, 81 { 00750, AID_ROOT, AID_SHELL, 0, "data/nativetest64" }, 82 { 00775, AID_ROOT, AID_ROOT, 0, "data/preloads" }, 84 { 00755, AID_ROOT, AID_SYSTEM, 0, "mnt" }, 85 { 00755, AID_ROOT, AID_ROOT, 0, "root" }, 86 { 00750, AID_ROOT, AID_SHELL, 0, "sbin" }, 87 { 00777, AID_ROOT, AID_ROOT, 0, "sdcard" }, 88 { 00751, AID_ROOT, AID_SDCARD_R, 0, "storage" }, [all …]
|
D | sockets_unix.cpp | 57 if ((cr.uid != AID_ROOT) && (cr.uid != AID_SHELL)) { in socket_peer_is_trusted()
|
/system/vold/ |
D | EmulatedVolume.cpp | 71 if (fs_prepare_dir(mFuseDefault.c_str(), 0700, AID_ROOT, AID_ROOT) || in doMount() 72 fs_prepare_dir(mFuseRead.c_str(), 0700, AID_ROOT, AID_ROOT) || in doMount() 73 fs_prepare_dir(mFuseWrite.c_str(), 0700, AID_ROOT, AID_ROOT)) { in doMount()
|
D | PublicVolume.cpp | 126 if (fs_prepare_dir(mRawPath.c_str(), 0700, AID_ROOT, AID_ROOT)) { in doMount() 146 if (fs_prepare_dir(mFuseDefault.c_str(), 0700, AID_ROOT, AID_ROOT) || in doMount() 147 fs_prepare_dir(mFuseRead.c_str(), 0700, AID_ROOT, AID_ROOT) || in doMount() 148 fs_prepare_dir(mFuseWrite.c_str(), 0700, AID_ROOT, AID_ROOT)) { in doMount()
|
D | Benchmark.cpp | 142 if (android::vold::PrepareDir(benchPath, 0700, AID_ROOT, AID_ROOT)) { in BenchmarkPrivate() 146 if (android::vold::PrepareDir(benchPath, 0700, AID_ROOT, AID_ROOT)) { in BenchmarkPrivate()
|
D | PrivateVolume.cpp | 102 if (PrepareDir(mPath, 0700, AID_ROOT, AID_ROOT)) { in doMount() 148 PrepareDir(mPath + "/local", 0751, AID_ROOT, AID_ROOT) || in doMount()
|
D | Ext4Crypt.cpp | 343 if (!prepare_dir(directory_path, 0700, AID_ROOT, AID_ROOT)) return false; in create_and_install_user_keys() 484 if (!prepare_dir(user_key_dir, 0700, AID_ROOT, AID_ROOT)) return false; in e4crypt_init_user0() 485 if (!prepare_dir(user_key_dir + "/ce", 0700, AID_ROOT, AID_ROOT)) return false; in e4crypt_init_user0() 486 if (!prepare_dir(user_key_dir + "/de", 0700, AID_ROOT, AID_ROOT)) return false; in e4crypt_init_user0()
|
D | VolumeManager.cpp | 484 fs_prepare_dir(source.c_str(), 0755, AID_ROOT, AID_ROOT); in linkPrimary() 517 fs_prepare_dir(path.c_str(), 0755, AID_ROOT, AID_ROOT); in onUserStarted()
|
/system/core/logd/ |
D | LogTags.cpp | 50 if (!comment) return AID_ROOT; in sniffUid() 59 return AID_ROOT; in sniffUid() 62 if ((cp > endp) || (Uid >= INT_MAX)) return AID_ROOT; in sniffUid() 106 formatEntry_locked(it.first, AID_ROOT), fd); in RebuildFileEventLogTags() 159 if (uid == AID_ROOT) { in AddEventLogTags() 166 } else if (newOne && (uid != AID_ROOT)) { in AddEventLogTags() 244 uid_t uid = AID_ROOT; in ReadFileEventLogTags() 313 : AID_ROOT; in ReadPersistEventLogTags() 569 .uid = (uint16_t)AID_ROOT, in WritePmsgEventLogTags() 582 } else if (uid != AID_ROOT) { in WritePmsgEventLogTags() [all …]
|
D | LogCommand.cpp | 61 if ((uid == AID_ROOT) || (uid == AID_SYSTEM) || (uid == AID_LOG)) { in clientHasLogCredentials() 65 if ((gid == AID_ROOT) || (gid == AID_SYSTEM) || (gid == AID_LOG)) { in clientHasLogCredentials()
|
D | LogTags.h | 96 void WritePersistEventLogTags(uint32_t tag, uid_t uid = AID_ROOT, 109 void WritePmsgEventLogTags(uint32_t tag, uid_t uid = AID_ROOT);
|
D | LogBuffer.h | 128 bool clear(log_id_t id, uid_t uid = AID_ROOT); 180 bool prune(log_id_t id, unsigned long pruneRows, uid_t uid = AID_ROOT);
|
D | CommandListener.cpp | 84 uid = AID_ROOT; in runCommand() 204 uid = AID_ROOT; in runCommand() 288 uid = AID_ROOT; in runCommand()
|
D | LogBuffer.cpp | 684 if (__predict_false(caller_uid != AID_ROOT)) { // unlikely in prune() 735 stats.sortTags(AID_ROOT, (pid_t)0, 2, id) in prune() 740 stats.sort(AID_ROOT, (pid_t)0, 2, id) in prune()
|
D | LogStatistics.cpp | 564 name = (uid == AID_ROOT) ? "Chattiest UIDs in %s log buffer:" in format() 570 name = ((uid == AID_ROOT) && !pid) ? "Chattiest PIDs:" in format()
|
/system/security/keystore/ |
D | permissions.cpp | 58 {AID_VPN, AID_SYSTEM}, {AID_WIFI, AID_SYSTEM}, {AID_ROOT, AID_SYSTEM}, 71 {AID_ROOT, static_cast<perm_t>(P_GET)},
|
/system/core/liblog/ |
D | logger_write.c | 59 if ((uid != AID_SYSTEM) && (uid != AID_ROOT) && (uid != AID_LOG)) { in check_log_uid_permissions() 61 if ((uid != AID_SYSTEM) && (uid != AID_ROOT) && (uid != AID_LOG)) { in check_log_uid_permissions() 63 if ((gid != AID_SYSTEM) && (gid != AID_ROOT) && (gid != AID_LOG)) { in check_log_uid_permissions() 65 if ((gid != AID_SYSTEM) && (gid != AID_ROOT) && (gid != AID_LOG)) { in check_log_uid_permissions()
|
D | logd_reader.c | 403 return ((uid != AID_ROOT) && (uid != AID_LOG) && (uid != AID_SYSTEM)) ? 3 : 4; in logdVersion()
|
D | pmsg_reader.c | 71 return (uid == AID_SYSTEM) || (uid == AID_LOG) || (uid == AID_ROOT) || in uid_has_log_permission()
|
/system/core/include/private/ |
D | android_filesystem_config.h | 68 #define AID_ROOT 0 /* traditional unix root user */ macro
|
/system/core/libcutils/include/private/ |
D | android_filesystem_config.h | 68 #define AID_ROOT 0 /* traditional unix root user */ macro
|
/system/core/liblog/tests/ |
D | liblog_test.cpp | 194 if (getuid() == AID_ROOT) { in TEST() 204 if (getuid() == AID_ROOT) { in TEST() 215 if (getuid() == AID_ROOT) { in TEST() 1785 if (getuid() != AID_ROOT) { in TEST() 1798 system((getuid() == AID_ROOT) ? "stop logd" : "su 0 stop logd"); in TEST() 1822 system((getuid() == AID_ROOT) ? "start logd" : "su 0 start logd"); in TEST() 1902 bool perm = (gid == AID_ROOT) || (uid == AID_ROOT); in TEST() 1994 if ((uid != AID_SYSTEM) && (uid != AID_ROOT) && (uid != AID_LOG) && in TEST() 1995 (gid != AID_SYSTEM) && (gid != AID_ROOT) && (gid != AID_LOG)) { in TEST() 1997 if ((euid != AID_SYSTEM) && (euid != AID_ROOT) && (euid != AID_LOG)) { in TEST() [all …]
|
/system/extras/su/ |
D | su.cpp | 85 if (current_uid != AID_ROOT && current_uid != AID_SHELL) error(1, 0, "not allowed"); in main()
|
/system/core/run-as/ |
D | run-as.cpp | 138 if (getuid() != AID_SHELL && getuid() != AID_ROOT) { in main()
|
/system/core/sdcard/ |
D | sdcard.cpp | 249 global.root.uid = AID_ROOT; in run()
|