Lines Matching refs:uid
58 unsigned int uid;
93 * White list of UID that are allowed to start/stop services.
98 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) {
202 if (uid == AID_SYSTEM || uid == AID_ROOT)
208 if ((uid && control_perms[i].uid == uid) ||
219 * Returns 1 if uid allowed, 0 otherwise.
221 static int check_perms(const char *name, unsigned int uid, unsigned int gid)
224 if (uid == 0)
234 if ((uid && property_perms[i].uid == uid) ||
381 if (check_control_perms(msg.value, cr.uid, cr.gid)) {
384 ERROR("sys_prop: Unable to %s service ctl [%s] uid:%d gid:%d pid:%d\n",
385 msg.name + 4, msg.value, cr.uid, cr.gid, cr.pid);
388 if (check_perms(msg.name, cr.uid, cr.gid)) {
391 ERROR("sys_prop: permission denied uid:%d name:%s\n",
392 cr.uid, msg.name);