Home | History | Annotate | Download | only in init

Lines Matching defs:uid

62     unsigned int uid;
101 * White list of UID that are allowed to start/stop services.
106 unsigned int uid;
198 * Returns 1 if uid allowed, 0 otherwise.
200 static int check_control_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx) {
203 if (uid == AID_SYSTEM || uid == AID_ROOT)
209 if ((uid && control_perms[i].uid == uid) ||
220 * Returns 1 if uid allowed, 0 otherwise.
222 static int check_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx)
230 if (uid == 0)
233 app_id = multiuser_get_app_id(uid);
235 uid = app_id;
241 if ((uid && property_perms[i].uid == uid) ||
406 if (check_control_perms(msg.value, cr.uid, cr.gid, source_ctx)) {
409 ERROR("sys_prop: Unable to %s service ctl [%s] uid:%d gid:%d pid:%d\n",
410 msg.name + 4, msg.value, cr.uid, cr.gid, cr.pid);
413 if (check_perms(msg.name, cr.uid, cr.gid, source_ctx)) {
416 ERROR("sys_prop: permission denied uid:%d name:%s\n",
417 cr.uid, msg.name);
517 ERROR("skipping insecure property file %s (uid=%lu gid=%lu nlink=%d mode=%o)\n",