Home
last modified time | relevance | path

Searched defs:uid (Results 1 – 25 of 183) sorted by relevance

12345678

/system/core/gatekeeperd/binder/android/service/gatekeeper/
DIGateKeeperService.aidl41 GateKeeperResponse enroll(int uid, in @nullable byte[] currentPasswordHandle, in enroll()
52 … GateKeeperResponse verify(int uid, in byte[] enrolledPasswordHandle, in byte[] providedPassword); in verify()
65 GateKeeperResponse verifyChallenge(int uid, long challenge, in byte[] enrolledPasswordHandle, in verifyChallenge()
73 long getSecureUserId(int uid); in getSecureUserId()
80 void clearSecureUserId(int uid); in clearSecureUserId()
/system/vold/
DAppFuseUtil.cpp36 static android::status_t GetMountPath(uid_t uid, const std::string& name, std::string* path) { in GetMountPath()
73 static android::status_t RunCommand(const std::string& command, uid_t uid, const std::string& path, in RunCommand()
105 int MountAppFuse(uid_t uid, int mountId, android::base::unique_fd* device_fd) { in MountAppFuse()
139 int UnmountAppFuse(uid_t uid, int mountId) { in UnmountAppFuse()
152 int OpenAppFuseFile(uid_t uid, int mountId, int fileId, int flags) { in OpenAppFuseFile()
DVoldNativeServiceValidation.cpp43 uid_t uid; in CheckPermission() local
55 uid_t uid = IPCThreadState::self()->getCallingUid(); in CheckUidOrRoot() local
/system/core/gatekeeperd/
Dgatekeeperd.cpp79 void store_sid(uint32_t uid, uint64_t sid) { in store_sid()
120 void maybe_store_sid(uint32_t uid, uint64_t sid) { in maybe_store_sid()
128 uint64_t read_sid(uint32_t uid) { in read_sid()
139 void clear_sid(uint32_t uid) { in clear_sid()
150 uint32_t adjust_uid(uint32_t uid) { in adjust_uid()
162 Status enroll(int32_t uid, const std::optional<std::vector<uint8_t>>& currentPasswordHandle, in enroll()
242 Status verify(int32_t uid, const ::std::vector<uint8_t>& enrolledPasswordHandle, in verify()
248 Status verifyChallenge(int32_t uid, int64_t challenge, in verifyChallenge()
324 Status getSecureUserId(int32_t uid, int64_t* sid) override { in getSecureUserId()
329 Status clearSecureUserId(int32_t uid) override { in clearSecureUserId()
[all …]
/system/core/libcutils/
Dmultiuser.cpp20 userid_t multiuser_get_user_id(uid_t uid) { in multiuser_get_user_id()
24 appid_t multiuser_get_app_id(uid_t uid) { in multiuser_get_app_id()
66 gid_t multiuser_get_shared_app_gid(uid_t uid) { in multiuser_get_shared_app_gid()
Duevent.cpp36 uid_t uid = -1; in uevent_kernel_multicast_recv() local
49 ssize_t uevent_kernel_multicast_uid_recv(int socket, void* buffer, size_t length, uid_t* uid) { in uevent_kernel_multicast_uid_recv()
53 ssize_t uevent_kernel_recv(int socket, void* buffer, size_t length, bool require_group, uid_t* uid)… in uevent_kernel_recv()
Dfs.cpp42 static int fs_prepare_path_impl(const char* path, mode_t mode, uid_t uid, gid_t gid, in fs_prepare_path_impl()
115 int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid) { in fs_prepare_dir()
119 int fs_prepare_dir_strict(const char* path, mode_t mode, uid_t uid, gid_t gid) { in fs_prepare_dir_strict()
123 int fs_prepare_file_strict(const char* path, mode_t mode, uid_t uid, gid_t gid) { in fs_prepare_file_strict()
Dqtaguid.cpp94 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { in qtaguid_tagSocket()
118 int qtaguid_setCounterSet(int counterSetNum, uid_t uid) { in qtaguid_setCounterSet()
123 int qtaguid_deleteTagData(int tag, uid_t uid) { in qtaguid_deleteTagData()
Dfs_config.h25 uint16_t uid; member
33 unsigned uid; member
/system/security/keystore/binder/android/security/keystore/
DIKeystoreService.aidl36 byte[] get(String name, int uid); in get()
38 int insert(String name, in byte[] item, int uid, int flags); in insert()
40 int del(String name, int uid); in del()
42 int exist(String name, int uid); in exist()
44 String[] list(String namePrefix, int uid); in list()
52 long getmtime(String name, int uid); in getmtime()
56 int clear_uid(long uid); in clear_uid()
59 …racteristicsCallback cb, String alias, in KeymasterArguments arguments, in byte[] entropy, int uid, in generateKey()
62 int uid); in getKeyCharacteristics()
64 in byte[] keyData, int uid, int flags); in importKey()
[all …]
/system/security/keystore/
Dpermissions.cpp53 uid_t uid; member
68 uid_t uid; member
92 uid_t uid; member
134 static bool keystore_selinux_check_access(uid_t uid, perm_t perm, pid_t spid, const char* ssid) { in keystore_selinux_check_access()
166 uid_t get_keystore_euid(uid_t uid) { in get_keystore_euid()
177 bool has_permission(uid_t uid, perm_t perm, pid_t spid, const char* sid) { in has_permission()
Dkeystore_utils.cpp134 uid_t get_app_id(uid_t uid) { in get_app_id()
138 uid_t get_user_id(uid_t uid) { in get_user_id()
142 void log_key_integrity_violation(const char* name, uid_t uid) { in log_key_integrity_violation()
/system/core/logd/
DLogWriter.h26 LogWriter(uid_t uid, bool privileged) : uid_(uid), privileged_(privileged) {} in LogWriter()
34 uid_t uid() const { return uid_; } in uid() function
DPruneList.h31 Prune(uid_t uid, pid_t pid) : uid_(uid), pid_(pid) {} in Prune()
36 uid_t uid() const { return uid_; } in uid() function
DLogTags.cpp136 void LogTags::AddEventLogTags(uint32_t tag, uid_t uid, const std::string& Name, in AddEventLogTags()
248 uid_t uid = AID_ROOT; in ReadFileEventLogTags() local
316 uid_t uid = log_msg.entry.uid; in ReadPersistEventLogTags() local
490 void LogTags::WritePmsgEventLogTags(uint32_t tag, uid_t uid) { in WritePmsgEventLogTags()
593 void LogTags::WriteDynamicEventLogTags(uint32_t tag, uid_t uid) { in WriteDynamicEventLogTags()
615 void LogTags::WriteDebugEventLogTags(uint32_t tag, uid_t uid) { in WriteDebugEventLogTags()
640 void LogTags::WritePersistEventLogTags(uint32_t tag, uid_t uid, in WritePersistEventLogTags()
680 uint32_t LogTags::nameToTag(uid_t uid, const char* name, const char* format) { in nameToTag()
795 std::string LogTags::formatEntry(uint32_t tag, uid_t uid, const char* name, in formatEntry()
809 std::string LogTags::formatEntry_locked(uint32_t tag, uid_t uid, in formatEntry_locked()
[all …]
DRecordingLogBuffer.cpp26 void RecordingLogBuffer::RecordLogMessage(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, in RecordLogMessage()
58 int RecordingLogBuffer::Log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, in Log()
DSerializedLogChunk.cpp56 bool SerializedLogChunk::ClearUidLogs(uid_t uid, log_id_t log_id, LogStatistics* stats) { in ClearUidLogs()
106 SerializedLogEntry* SerializedLogChunk::Log(uint64_t sequence, log_time realtime, uid_t uid, in Log()
/system/core/libprocessgroup/
Dprocessgroup.cpp118 bool SetProcessProfiles(uid_t uid, pid_t pid, const std::vector<std::string>& profiles) { in SetProcessProfiles()
126 static std::string ConvertUidToPath(const char* cgroup, uid_t uid) { in ConvertUidToPath()
130 static std::string ConvertUidPidToPath(const char* cgroup, uid_t uid, int pid) { in ConvertUidPidToPath()
134 static int RemoveProcessGroup(const char* cgroup, uid_t uid, int pid) { in RemoveProcessGroup()
147 std::unique_ptr<DIR, decltype(&closedir)> uid(opendir(uid_path.c_str()), closedir); in RemoveUidProcessGroups() local
215 static bool MkdirAndChown(const std::string& path, mode_t mode, uid_t uid, gid_t gid) { in MkdirAndChown()
233 static int DoKillProcessGroupOnce(const char* cgroup, uid_t uid, int initialPid, int signal) { in DoKillProcessGroupOnce()
303 static int KillProcessGroup(uid_t uid, int initialPid, int signal, int retries, in KillProcessGroup()
369 int killProcessGroup(uid_t uid, int initialPid, int signal, int* max_processes) { in killProcessGroup()
373 int killProcessGroupOnce(uid_t uid, int initialPid, int signal, int* max_processes) { in killProcessGroupOnce()
[all …]
/system/bt/profile/avrcp/
Dmedia_id_map.h34 std::string get_media_id(uint64_t uid) { in get_media_id()
51 uint64_t uid = media_id_to_uid_.size() + 1; in insert() local
/system/extras/su/
Dsu.cpp29 void pwtoid(const char* tok, uid_t* uid, gid_t* gid) { in pwtoid()
44 void extract_uidgids(const char* uidgids, uid_t* uid, gid_t* gid, gid_t* gids, int* gids_count) { in extract_uidgids()
101 uid_t uid = 0; in main() local
/system/netd/server/
DTrafficControllerTest.cpp132 int setUpSocketAndTag(int protocol, uint64_t* cookie, uint32_t tag, uid_t uid, in setUpSocketAndTag()
142 void expectUidTag(uint64_t cookie, uid_t uid, uint32_t tag) { in expectUidTag()
151 void populateFakeStats(uint64_t cookie, uint32_t uid, uint32_t tag, StatsKey* key) { in populateFakeStats()
167 uint32_t uid = TEST_UID; in checkUidOwnerRuleForChain() local
198 for (uint32_t uid : uids) { in checkEachUidValue() local
225 uint32_t uid = stoi(strUid); in expectUidOwnerMapValues() local
245 for (uid_t uid : appUids) { in expectUidPermissionMapValues() local
257 for (uid_t uid : appUids) { in expectPrivilegedUserSet() local
267 void addPrivilegedUid(uid_t uid) { in addPrivilegedUid()
272 void removePrivilegedUid(uid_t uid) { in removePrivilegedUid()
[all …]
DTrafficController.cpp110 bool TrafficController::hasUpdateDeviceStatsPermission(uid_t uid) { in hasUpdateDeviceStatsPermission()
311 int TrafficController::tagSocket(int sockFd, uint32_t tag, uid_t uid, uid_t callingUid) { in tagSocket()
400 int TrafficController::setCounterSet(int counterSetNum, uid_t uid, uid_t callingUid) { in setCounterSet()
435 int TrafficController::deleteTagData(uint32_t tag, uid_t uid, uid_t callingUid) { in deleteTagData()
521 Status TrafficController::updateOwnerMapEntry(UidOwnerMatchType match, uid_t uid, FirewallRule rule, in updateOwnerMapEntry()
546 Status TrafficController::removeRule(uint32_t uid, UidOwnerMatchType match) { in removeRule()
564 Status TrafficController::addRule(uint32_t uid, UidOwnerMatchType match, uint32_t iif) { in addRule()
599 long uid = strtol(appStrUid.c_str(), &endPtr, 10); in updateUidOwnerMap() local
617 int TrafficController::changeUidOwnerRule(ChildChain chain, uid_t uid, FirewallRule rule, in changeUidOwnerRule()
660 for(auto uid : uidsToDelete) { in replaceRulesInMap() local
[all …]
/system/core/libprocessgroup/profiles/
Dcgroups.proto32 string uid = 4 [json_name = "UID"]; field
40 string uid = 3 [json_name = "UID"]; field
/system/core/run-as/
Drun-as.cpp73 static void check_directory(const char* path, uid_t uid) { in check_directory()
102 static void check_data_path(const char* package_name, const char* data_path, uid_t uid) { in check_data_path()
239 uid_t uid = userAppId; in main() local
/system/core/libqtaguid/
Dqtaguid.c80 int legacy_tagSocket(int sockfd, int tag, uid_t uid) { in legacy_tagSocket()
115 int legacy_setCounterSet(int counterSetNum, uid_t uid) { in legacy_setCounterSet()
126 int legacy_deleteTagData(int tag, uid_t uid) { in legacy_deleteTagData()

12345678