Lines Matching refs:uid
62 unsigned int uid;
100 * White list of UID that are allowed to start/stop services.
105 unsigned int uid;
247 * Returns 1 if uid allowed, 0 otherwise.
249 static int check_control_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx) {
252 if (uid == AID_SYSTEM || uid == AID_ROOT)
258 if ((uid && control_perms[i].uid == uid) ||
269 * Returns 1 if uid allowed, 0 otherwise.
271 static int check_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx)
279 if (uid == 0)
282 app_id = multiuser_get_app_id(uid);
284 uid = app_id;
290 if ((uid && property_perms[i].uid == uid) ||
444 if (check_control_perms(msg.value, cr.uid, cr.gid, source_ctx)) {
447 ERROR("sys_prop: Unable to %s service ctl [%s] uid:%d gid:%d pid:%d\n",
448 msg.name + 4, msg.value, cr.uid, cr.gid, cr.pid);
451 if (check_perms(msg.name, cr.uid, cr.gid, source_ctx)) {
454 ERROR("sys_prop: permission denied uid:%d name:%s\n",
455 cr.uid, msg.name);
555 ERROR("skipping insecure property file %s (uid=%lu gid=%lu nlink=%d mode=%o)\n",