Lines Matching defs:uid
100 * iptables -I bw_penalty_box -m owner --uid-owner app_3 \
106 * iptables -I bw_happy_box -m owner --uid-owner app_3 \
299 std::string BandwidthController::makeIptablesSpecialAppCmd(IptOp op, int uid, const char *chain) {
321 asprintf(&buff, "%s %s -m owner --uid-owner %d", opFlag, chain, uid);
410 std::list<int /*uid*/>::iterator it;
415 failLogTemplate = "Failed to add app uid %s(%d) to %s.";
419 failLogTemplate = "Failed to delete app uid %s(%d) from %s box.";
436 int uid = appUids[uidNum];
438 if (*it == uid)
445 ALOGE("No such appUid %d to remove", uid);
451 ALOGE("appUid %d exists already", uid);
454 specialAppUids.push_front(uid);
457 iptCmd = makeIptablesSpecialAppCmd(op, uid, chain);
459 ALOGE(failLogTemplate, appStrUids[uidNum], uid, chain);
466 /* Try to remove the uid that failed in any case*/