Home
last modified time | relevance | path

Searched refs:AID_ROOT (Results 1 – 25 of 28) sorted by relevance

12

/system/core/libcutils/
Dfs_config.c67 { 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 …]
Dsockets_unix.cpp57 if ((cr.uid != AID_ROOT) && (cr.uid != AID_SHELL)) { in socket_peer_is_trusted()
/system/vold/
DEmulatedVolume.cpp71 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()
DPublicVolume.cpp126 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()
DBenchmark.cpp142 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()
DPrivateVolume.cpp102 if (PrepareDir(mPath, 0700, AID_ROOT, AID_ROOT)) { in doMount()
148 PrepareDir(mPath + "/local", 0751, AID_ROOT, AID_ROOT) || in doMount()
DExt4Crypt.cpp343 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()
DVolumeManager.cpp484 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/
DLogTags.cpp50 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 …]
DLogCommand.cpp61 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()
DLogTags.h96 void WritePersistEventLogTags(uint32_t tag, uid_t uid = AID_ROOT,
109 void WritePmsgEventLogTags(uint32_t tag, uid_t uid = AID_ROOT);
DLogBuffer.h128 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);
DCommandListener.cpp84 uid = AID_ROOT; in runCommand()
204 uid = AID_ROOT; in runCommand()
288 uid = AID_ROOT; in runCommand()
DLogBuffer.cpp684 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()
DLogStatistics.cpp564 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/
Dpermissions.cpp58 {AID_VPN, AID_SYSTEM}, {AID_WIFI, AID_SYSTEM}, {AID_ROOT, AID_SYSTEM},
71 {AID_ROOT, static_cast<perm_t>(P_GET)},
/system/core/liblog/
Dlogger_write.c59 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()
Dlogd_reader.c403 return ((uid != AID_ROOT) && (uid != AID_LOG) && (uid != AID_SYSTEM)) ? 3 : 4; in logdVersion()
Dpmsg_reader.c71 return (uid == AID_SYSTEM) || (uid == AID_LOG) || (uid == AID_ROOT) || in uid_has_log_permission()
/system/core/include/private/
Dandroid_filesystem_config.h68 #define AID_ROOT 0 /* traditional unix root user */ macro
/system/core/libcutils/include/private/
Dandroid_filesystem_config.h68 #define AID_ROOT 0 /* traditional unix root user */ macro
/system/core/liblog/tests/
Dliblog_test.cpp194 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/
Dsu.cpp85 if (current_uid != AID_ROOT && current_uid != AID_SHELL) error(1, 0, "not allowed"); in main()
/system/core/run-as/
Drun-as.cpp138 if (getuid() != AID_SHELL && getuid() != AID_ROOT) { in main()
/system/core/sdcard/
Dsdcard.cpp249 global.root.uid = AID_ROOT; in run()

12